Skip to content

Conversation

arthurbdiniz
Copy link

  • Add comprehensive DEVELOPMENT.md with project documentation
  • Create Makefile with build, test, lint and other development commands
  • Implement command structure using Cobra framework
  • Add man page generation support
  • Update .gitignore for new artifacts

- Add comprehensive DEVELOPMENT.md with project documentation
- Create Makefile with build, test, lint and other development commands
- Implement command structure using Cobra framework
- Add man page generation support
- Update .gitignore for new artifacts

Signed-off-by: Arthur Diniz <[email protected]>
@n-peugnet
Copy link
Contributor

I am not against these changes, but I would like to know what are the motivations behind rewriting the CLI with Cobra. What would you say are the main benefits?

@ottok
Copy link
Contributor

ottok commented Jun 19, 2025

Same here. The commit message just summarizes what was done, but nothing about why this change is should be done.

@arthurbdiniz
Copy link
Author

By switching to Cobra, we gain some useful built-in features, such as shell auto-completion.

For example, users can enable Bash completion with:

source <(dh-make-golang completion bash)

Additionally, Cobra helps make the CLI more consistent and user-friendly by standardizing how flags and help messages are handled across commands.

This pull request also addresses inconsistent flag naming, some flags used dashes (-) while others used underscores (_). These are now unified.

cc @n-peugnet, @ottok

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.

3 participants