fix: add options sub-cmd for kusion #791
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
/kind bug
What this PR does / why we need it:
This PR adds
options
sub-cmd for kusion root command and fix the wrong--help
info.For example, below is the previous
![image](https://private-user-images.githubusercontent.com/78610302/301797843-5ff20d80-bd14-4b34-8184-defab68dcce3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjExNTc0NjYsIm5iZiI6MTcyMTE1NzE2NiwicGF0aCI6Ii83ODYxMDMwMi8zMDE3OTc4NDMtNWZmMjBkODAtYmQxNC00YjM0LTgxODQtZGVmYWI2OGRjY2UzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE2VDE5MTI0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFkYWRlZGVmZmQ1YzM3YmJiZTkwMDMyZTdlMDRlODMxODQwZjJjMGE4ZGFjOTAwMWRlZThkMDNmNWMzNjY4MTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ulbxxlIDh8tKxftwY3HHCkN_TktwDYovJdxpT92wXQo)
--help
info ofkusion init
:And this is the result after the bug fix:
![image](https://private-user-images.githubusercontent.com/78610302/301797884-7a22adc3-fdb4-4470-b784-cd35a569f2dc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjExNTc0NjYsIm5iZiI6MTcyMTE1NzE2NiwicGF0aCI6Ii83ODYxMDMwMi8zMDE3OTc4ODQtN2EyMmFkYzMtZmRiNC00NDcwLWI3ODQtY2QzNWE1NjlmMmRjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE2VDE5MTI0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYwZDhiMzg1ZTZjNGUzMWIzNjcyOTUwMDBiNGVhMTM2M2ZhYzE0YmRiNGRhMDQwYTQ1ZDE0MjA2Yzc3Yjk4MWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.KmCXeVvA4ncTOetVUXKCiPe_rPYnaDoTc4uVRblj4P4)
Which issue(s) this PR fixes:
Fixes #772
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., design docs, usage docs, etc.: