Skip to content

Conversation

@joshichintan
Copy link

BREAKING CHANGE: Migrates the CLI framework from kingpin to cobra for improved maintainability and better shell completion support.

This change brings several improvements:

  • Enhanced shell completion with cobra's native completion engine
  • More intuitive command structure and flag handling
  • Better error messages and help text formatting
  • Improved maintainability with cobra's cleaner command organization

All command functionality remains the same, but the underlying CLI framework has been completely replaced. Users should experience no breaking changes in command usage, though some internal behaviors may differ slightly.

Commands migrated:

  • add, remove, list, rotate
  • exec, export, clear
  • login, proxy

The migration maintains backward compatibility for all command-line arguments and flags while providing a more robust foundation for future enhancements.

@joshichintan joshichintan requested a review from mbevc1 as a code owner October 28, 2025 00:51
@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label Oct 28, 2025
@joshichintan
Copy link
Author

will reopen, need to test this locally

@joshichintan joshichintan changed the title refactor(cli)migrate from kingpin to cobra CLI framework refactor: migrate cli from kingpin to cobra CLI framework Oct 28, 2025
@joshichintan joshichintan reopened this Oct 28, 2025
@joshichintan joshichintan changed the title refactor: migrate cli from kingpin to cobra CLI framework refactor(cli): migrate from kingpin to cobra CLI framework Oct 28, 2025
@joshichintan joshichintan force-pushed the main branch 2 times, most recently from 2a2bb98 to c1fe576 Compare October 28, 2025 07:16
@mbevc1
Copy link

mbevc1 commented Oct 28, 2025

Related: #173

Thanks for your contribution. Could you please have a look at tests, seems macOS builds are failing.

BREAKING CHANGE: Migrates the CLI framework from kingpin to cobra for improved maintainability and better shell completion support.

This change brings several improvements:
- Enhanced shell completion with cobra's native completion engine
- More intuitive command structure and flag handling
- Better error messages and help text formatting
- Improved maintainability with cobra's cleaner command organization

All command functionality remains the same, but the underlying CLI framework
has been completely replaced. Users should experience no breaking changes in
command usage, though some internal behaviors may differ slightly.

Commands migrated:
- add, remove, list, rotate
- exec, export, clear
- login, proxy

The migration maintains backward compatibility for all command-line arguments
and flags while providing a more robust foundation for future enhancements.
@joshichintan
Copy link
Author

@mbevc1 the add cmd test is failing due to no interactive keychain input received. I've two options,

  1. I can either just test the params to the add cmd, like the existing one
  2. setup the test keychain ( updated ci flow to support this ), this would allow us to test the keychain flow.

would appreciate your guidance.

@mbevc1
Copy link

mbevc1 commented Oct 30, 2025

Hi @joshichintan . Appreciate you looking into this, I'd probably say let's try to align with the current approach and go with 1. to get it up and running faster. Perhaps 2. could be a potential separate improvement PR? What did you have in mind in terms of adjusting CI?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file pipelines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants