Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Allow hiding of supercommand documentation #107

Merged

Conversation

SimonRichardson
Copy link
Member

@SimonRichardson SimonRichardson commented Aug 14, 2023

The following allows the hiding of the supercommand documentation. It's not always required to show the supercommand documentation. Most supercommands (wait-for, jujud, container-agent) don't always give you anything of any importance or worthwhile.

To enable that, we just add a new flag on the supercommand to skip it during documentation output.

This is the fix for #100

The following allows the hiding of the supercommand documentation.
It's not always required to show the supercommand documentation, it
doesn't always give you anything.

To enable that, we just add a new flag on the supercommand to skip
it during documentation output.
@SimonRichardson SimonRichardson self-assigned this Aug 14, 2023
supercommand.go Outdated Show resolved Hide resolved
documentation.go Outdated Show resolved Hide resolved
supercommand.go Outdated Show resolved Hide resolved
Add a note about how we should remove this feature and replace it
with a better abstraction.
@SimonRichardson SimonRichardson force-pushed the allow-hidden-super-command-indexes branch from 0928790 to 204135f Compare August 15, 2023 07:48
The writeDocs method was doing too much. Instead we have a writeDoc
method that just does one thing. Writing the doc.
@SimonRichardson
Copy link
Member Author

/merge

1 similar comment
@SimonRichardson
Copy link
Member Author

/merge

@jujubot jujubot merged commit c27426a into juju:master Aug 15, 2023
@SimonRichardson SimonRichardson deleted the allow-hidden-super-command-indexes branch August 15, 2023 09:48
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