Skip to content

Conversation

sudo-bmitch
Copy link
Contributor

Fixes issue

Describe the change

This helps align the different commands with each other.

  • Variable names have been improved to be less confusing.
  • Flags have been sorted, and completion options added on some flags where missing.
  • Each command creates its own options to avoid default flag value conflicts.
  • Reusing a command under two paths is now done by calling that commands "new" function.
  • Global-but-not-really-global options have been moved to be associated with the specific commands that use them.

How to verify it

Most changes should not be user visible. And where changes are visible, like moving flags from global to a specific command, they should be an improvement. Examples on some of the aliased commands may be changed to show the primary command name.

Changelog text

  • Chore: Refactor cobra commands.

Please verify and check that the pull request fulfills the following requirements

  • Tests have been added or not applicable
  • Documentation has been added, updated, or not applicable
  • Changes have been rebased to main
  • Multiple commits to the same code have been squashed

This helps align the different commands with each other.
- Variable names have been improved to be less confusing.
- Flags have been sorted, and completion options added on some flags where missing.
- Each command creates its own options to avoid default flag value conflicts.
- Reusing a command under two paths is now done by calling that commands "new" function.
- Global-but-not-really-global options have been moved to be associated with the specific commands that use them.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
@sudo-bmitch sudo-bmitch merged commit 161f93d into regclient:main Feb 27, 2025
5 checks passed
@sudo-bmitch sudo-bmitch deleted the pr-refactor-cobra branch February 27, 2025 16:11
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.

1 participant