Repository navigation
feat: add CLI shortcuts for common auth commands - #18
Merged
Merged
Conversation
- Add root-level shortcuts: login, logout, signup, register, whoami - Add whoami alias under auth command (nemar auth whoami) - Export action handlers from auth.ts for reuse - Keep two-prong structure as canonical (best practice), shortcuts as convenience Closes #12
Contributor
Author
PR Review SummaryCritical Issues (0 found)None. Important Issues (1 found)
Medium Issues (5 found)
Suggestions (4 found)
Strengths
VerdictApprovable as-is. The refactoring is clean and follows project conventions. The error handling issues noted are pre-existing patterns, not introduced by this PR. |
- Add whoami command to auth.md - Add shortcuts section to commands/index.md - Document root-level aliases (login, logout, signup, register, whoami)
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.
Summary
nemar login,nemar logout,nemar signup,nemar register,nemar whoaminemar auth whoamias alias fornemar auth statusThe two-prong structure (
nemar auth login, etc.) remains the canonical/documented approach following CLI best practices. The shortcuts are convenience aliases for users who prefer shorter commands.Closes #12
Test plan
nemar --helpshows new shortcutsnemar auth --helpshows whoami aliasnemar whoamiworks same asnemar auth statusnemar auth whoamiworks same asnemar auth status