-
Notifications
You must be signed in to change notification settings - Fork 233
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
Add sub command for completion and documentation generation #484
Conversation
ced6434
to
335311d
Compare
pkg/cmd/packaging.go
Outdated
Use: "doc <man|md|rest|yaml>", | ||
Short: "Generates documentation", | ||
Long: "Generation can be generated as Man Pages, Markdown, ReStructured Text Docs or Yaml", | ||
Example: "kubeone completion bash", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be kubeone doc md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also changed it to document
, seems more consistent for me for it to be a verb
335311d
to
b90de5b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! 💯 I found some typos, but otherwise lgtm.
pkg/cmd/packaging.go
Outdated
Short: "Generates completion scripts for bash and zsh", | ||
Long: `To load completion run into your current shell run | ||
|
||
. <(kubeone bashCompletion <shell>) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a typo in the description:
. <(kubeone bashCompletion <shell>) | |
. <(kubeone completion <shell>) |
@eqrx Regarding the documentation question, a quick document explaining how to activate the completion and generate documentation would be nice. Maybe even just putting quick description in the README would work as well. |
Signed-off-by: Alexander Sowitzki <alexander@loodse.com>
b90de5b
to
e2ea7c1
Compare
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
LGTM label has been added. Git tree hash: 4a2837ed652a24af17095738d4322a3b7dce88f0
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: xmudrii The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
See #480
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #480
Special notes for your reviewer:
Needed to upgrade cobra dependency to 0.0.4 because it has a helper method that simplifies argument parsing. Should the command be added to to documentation?
Documentation:
None
Release note: