Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

✨ 💄 Group flags in cobra help output #149

Merged
merged 5 commits into from
Feb 20, 2023

Conversation

wesen
Copy link
Collaborator

@wesen wesen commented Feb 20, 2023

Closes #59

This adds the unused as of yet parameter CommandGroup for the declarative parameter
yaml struct.

I'm letting this go for now as I still have to hook things up to REST and Lambda and want to
see how much of the declarative part I have to modify anyway.

All other tools don't use the embed yaml pattern either.

  • ✨ First pass, ugly output, but proof of concept works
  • ✨ Add proper indenting of flags, richer representation of flag usage
  • 🎨 Elide output as cobra does
  • 🎨 Further customize templated flag usage output
  • 🎨 Little tweaks

@wesen wesen merged commit 1709cfd into go-go-golems:main Feb 20, 2023
@wesen wesen deleted the feature/59/add-flag-groups branch February 20, 2023 18:55
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Group glazed flags together in cobra help section
1 participant