Skip to content

feat/cli: migrate version subcommand to use urface/cli#1292

Open
burmudar wants to merge 11 commits intomainfrom
wb/urfave-cli-init
Open

feat/cli: migrate version subcommand to use urface/cli#1292
burmudar wants to merge 11 commits intomainfrom
wb/urfave-cli-init

Conversation

@burmudar
Copy link
Copy Markdown
Contributor

This introduces a compatibility layer to start migrating src-cli to use a cli framework.

Some of the benefits we get by using a cli framework:

  • consistent flag handling
  • automatic help rendering of commands and flags
  • automatic value set of flags based on env variables
  • consistent handling of exit codes
  • hooks - like to make sure we have loaded the configuration before a command starts execution

If a command is within the migrated set, we then defer to executing the command within urfave/cli with runMigrated. If the command is not in the set we executing the legacy code with runLegacy.

Test plan

Tested locally

@burmudar burmudar self-assigned this Apr 13, 2026
@burmudar burmudar requested a review from a team April 13, 2026 12:45
@burmudar burmudar marked this pull request as ready for review April 13, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants