feat: add interactive menu when run with no args#8
Merged
tonychang04 merged 1 commit intomainfrom Mar 3, 2026
Merged
Conversation
Replace the old showLogoOnFirstRun (which created .insforge/ in CWD as a side effect) with an interactive clack menu that appears when `insforge` is invoked with no arguments in a TTY. The menu adapts based on auth and project state, guiding users to login, create, link, deploy, docs, or help. Also add a retry loop in requireAuth so failed login attempts prompt "Would you like to try again?" instead of dying with a raw error. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
WalkthroughThe changes replace a one-time welcome logo mechanism with an interactive CLI menu that guides users through authentication and project setup. Additionally, credential validation is enhanced with retry logic to improve error recovery during login attempts. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace the old showLogoOnFirstRun (which created .insforge/ in CWD as a side effect) with an interactive clack menu that appears when
insforgeis invoked with no arguments in a TTY. The menu adapts based on auth and project state, guiding users to login, create, link, deploy, docs, or help.Also add a retry loop in requireAuth so failed login attempts prompt "Would you like to try again?" instead of dying with a raw error.
Summary by CodeRabbit
New Features