feat: Add CLI tool with full glab auth login options and use command-stream#4
Merged
feat: Add CLI tool with full glab auth login options and use command-stream#4
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #3
…stream - Add glab-setup-git-identity CLI command that can be run globally - Support all glab auth login options: --hostname, --token, --stdin, --git-protocol, --api-protocol, --api-host, --use-keyring, --job-token - Update README.md to match gh-setup-git-identity structure with "Instead of manually running" section at the start - Refactor library to use command-stream for shell command execution - Add lino-arguments dependency for CLI argument parsing - Update TypeScript definitions with new options (apiProtocol, apiHost, jobToken, stdin) - Add test for apiProtocol default option Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This reverts commit f73bcbc.
Member
Author
|
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
Changes
CLI Options Added
All
glab auth loginoptions are now passable via CLI:--hostname- GitLab hostname--token, -t- GitLab access token--stdin- Read token from standard input--git-protocol, -p- Protocol for git operations (ssh, https, http)--api-protocol- Protocol for API calls (https, http)--api-host- Custom API host URL--use-keyring- Store token in system keyring--job-token, -j- CI job token for authenticationDependencies Added
command-stream- For executing shell commandslino-arguments- For CLI argument parsingyargs- Required by lino-argumentsFiles Modified
README.md- Complete restructure following gh-setup-git-identity formatsrc/cli.js- New CLI entry pointsrc/index.js- Refactored to use command-streamsrc/index.d.ts- Updated TypeScript definitionspackage.json- Added bin entry and new dependenciestests/index.test.js- Added apiProtocol testTest plan
Fixes #3
🤖 Generated with Claude Code