feat(git/gh): add checkout, config, and auth subcommand support#2739
Open
jlaportebot wants to merge 4 commits into
Open
feat(git/gh): add checkout, config, and auth subcommand support#2739jlaportebot wants to merge 4 commits into
jlaportebot wants to merge 4 commits into
Conversation
- Update has_limit_flag to detect -nN form (e.g., -n20) - Update parse_user_limit to parse -nN form - Add tests for -nN form (single and multi-digit) - All existing tests pass Fixes: rtk-ai#2665
…y, discover, session Addresses issue rtk-ai#1248: RTK Windows PowerShell Compatibility Gaps Changes: - ls.rs: On Windows, detect when 'ls' is not a real executable (PowerShell alias) and suggest 'rtk tree .' as native alternative - wc_cmd.rs: On Windows, detect when 'wc' is not available and provide PowerShell/Git Bash/WSL alternatives - main.rs (proxy): On Windows, warn about PowerShell aliases (ls, dir, echo, pwd, cp, mv, rm, cat, man, which) and built-ins (cd, set, exit, cls, history, alias, function) that aren't real executables - discover/mod.rs: On Windows, when no Claude sessions found, provide helpful info about session storage location (%USERPROFILE%\.claude\projects\) - analytics/session_cmd.rs: Same as above for session command All changes are conditional compilation (cfg(target_os = "windows")) so they only affect Windows users.
Author
|
All CI checks passing (CLA signed, check-target skipped). PR ready for merge queue. |
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
Adds support for missing high-frequency git and gh subcommands as requested in issue #2738:
Git commands added:
GitHub CLI commands added:
USAGE
gh auth [flags]
AVAILABLE COMMANDS
login: Log in to a GitHub account
logout: Log out of a GitHub account
refresh: Refresh stored authentication credentials
setup-git: Setup git with GitHub CLI
status: Display active account and authentication state on each known GitHub host
switch: Switch active GitHub account
token: Print the authentication token gh uses for a hostname and account
INHERITED FLAGS
--help Show help for command
LEARN MORE
Use
gh <command> <subcommand> --helpfor more information about a command.Read the manual at https://cli.github.com/manual** - Compact output for auth subcommands: , , , , ,
Implementation details:
Token savings:
✓ Logged in to github.com account jlaportebot (/home/john/.config/gh/hosts.yml)
All tests pass, clippy clean.