Skip to content

feat(application): add current command - #271

Merged
LorrisSaintGenez merged 2 commits into
mainfrom
feat/application-current
Jul 21, 2026
Merged

feat(application): add current command#271
LorrisSaintGenez merged 2 commits into
mainfrom
feat/application-current

Conversation

@LorrisSaintGenez

@LorrisSaintGenez LorrisSaintGenez commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

What

  • Add algolia application current: show the selected application (ID, alias) and its name + plan
  • Degrade gracefully: signed out → ID/alias + sign-in hint, API failure → ID/alias + warning; never triggers an interactive login
  • Add IConfig.ApplicationAlias(appID) to resolve an app's alias from state.toml

Test

  • algolia application current → app ID, alias (when set), name, plan
  • algolia application current -o json{"id":…,"alias":…,"name":…,"plan":…}
  • algolia auth logout then algolia application current → ID/alias + Sign in with "algolia auth login" …, exit 0, no browser opened
  • No application configured (fresh profile) → no current application configured; run "algolia application select" or "algolia auth login" first, non-zero exit

GROUT-409

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 35 complexity · 25 duplication

Metric Results
Complexity 35
Duplication 25

View in Codacy

TIP This summary will be updated as you push new changes.

@LorrisSaintGenez LorrisSaintGenez self-assigned this Jul 21, 2026
@LorrisSaintGenez
LorrisSaintGenez marked this pull request as ready for review July 21, 2026 18:13
@pipeline1987
pipeline1987 self-requested a review July 21, 2026 19:24
@LorrisSaintGenez
LorrisSaintGenez merged commit 036063d into main Jul 21, 2026
3 checks passed
@LorrisSaintGenez
LorrisSaintGenez deleted the feat/application-current branch July 21, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants