( 📖 ) Enhancements to CLI Help#5498
( 📖 ) Enhancements to CLI Help#5498cmallikarjunah wants to merge 1 commit intokubernetes-sigs:masterfrom
Conversation
|
Hi @cmallikarjunah. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: cmallikarjunah The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
5199364 to
1941ec0
Compare
Update init.go
1941ec0 to
35ffe38
Compare
|
For review purpose attaching a CLI_HELP_DOCUMENTATION.md (in the PR description) for a clean read on how the cli help command output looks after modifications. |
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
|
||
| This is helpful for migrating projects to a newer Kubebuilder layout or plugin version (e.g., v3 to v4) | ||
| as update your project from any previous version to the current one. | ||
| This command uses the latest installed Kubebuilder version and plugins to regenerate |
There was a problem hiding this comment.
That is not accurate. The command will use the code of the CLI version installed/used.
I think the original text here seems more accurate.
|
|
||
| # Re-scaffold the project from ./test into ./my-output | ||
| kubebuilder alpha generate --input-dir="./path/to/project" --output-dir="./my-output" | ||
| # Re-scaffold to a different directory (safe, preserves original) |
There was a problem hiding this comment.
I do not think we need the info under ()
| # Re-scaffold to a different directory (safe, preserves original) | ||
| kubebuilder alpha generate --output-dir="./regenerated" | ||
|
|
||
| # Re-scaffold from a specific project directory to a different directory |
There was a problem hiding this comment.
The original # Re-scaffold the project from ./test into ./my-output direct form seems more intuitive and aligned with kubebuilder/k8s docs style.
| scaffoldCmd.Flags().StringVar(&opts.InputDir, "input-dir", "", | ||
| "Path to the directory containing the PROJECT file. "+ | ||
| "Defaults to the current working directory. WARNING: delete existing files (except .git and PROJECT).") | ||
| "path to directory containing the PROJECT file (default: current directory). "+ |
There was a problem hiding this comment.
That is a good point, what is the best: Should start all with Upper case or not?
The change here shows make it better 👍
| updateCmd.Flags().StringVar(&opts.FromVersion, "from-version", "", | ||
| "binary release version to upgrade from. Should match the version used to init the project and be "+ | ||
| "a valid release version, e.g., v4.6.0. If not set, it defaults to the version specified in the PROJECT file.") | ||
| "Kubebuilder version to upgrade from (e.g., v4.6.0). Should match version used to initialize project "+ |
There was a problem hiding this comment.
I think clarify that from. == init version is important. WDYT?
For review purpose attaching a CLI_HELP_DOCUMENTATION.md for a clean read on how the cli help command output looks after modifications.
CLI_HELP_DOCUMENTATION.md