ROX-28263: Custom roxctl command usage formatting#14376
Conversation
|
Images are ready for the commit at 5558939. To use with deploy scripts, first |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #14376 +/- ##
==========================================
+ Coverage 49.11% 49.17% +0.05%
==========================================
Files 2522 2525 +3
Lines 184268 184462 +194
==========================================
+ Hits 90506 90706 +200
+ Misses 86559 86551 -8
- Partials 7203 7205 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/retest |
|
What's the reason behind this change? |
The reason is to get rid of this embarrassment: |
|
Could you add a link to kubectl and how it's done there? |
9e9d6af to
52a4a0c
Compare
dfc30a4 to
3f832f4
Compare
janisz
left a comment
There was a problem hiding this comment.
LGTM if you can extract unrelated changes and use term size
roxctl command usage formatting
acc673a to
d7a1d94
Compare
61d4647 to
5558939
Compare
Description
This PR adds implementation of a custom formatter, that indents and wraps flag descriptions:
Instead of the current unreadable nonsense:
It also removes the annoying "(default false)" from boolean flags descriptions.
declarative-configcommands override the formatter for reasons. This will be addressed in the follow-up PR #14377.See the new output:
https://github.com/stackrox/stackrox/pull/14376/files#diff-c01d393b2fd1c2f1621101007552a73c3958050590c941c2c6272e26a8efef76
User-facing documentation
Testing and quality
Automated testing
How I validated my change
Unit tests, bats tests.
Current dependencies on/for this PR:
roxctlcommand tree #14387roxctlcommand usage formatting #14376 👈roxctlcommand flag inheritance #14377