-
Notifications
You must be signed in to change notification settings - Fork 12
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
fix: generate long desc and examples for root command #53
Conversation
@crazy-max can you help me look at these test failures? I have tried generating docs with this version in both cli and buildx and I don't see any issues. I can't quite figure out what's going wrong in these tests either. |
ab5ac4f
to
adf75cb
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #53 +/- ##
==========================================
- Coverage 70.58% 69.71% -0.88%
==========================================
Files 5 5
Lines 459 459
==========================================
- Hits 324 320 -4
Misses 77 77
- Partials 58 62 +4 ☔ View full report in Codecov by Sentry. |
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
fc01364
to
9712509
Compare
Sorry, I realise my question about I recall now I went looking for flags, and noticing the |
@thaJeztah Aaah, I see now yes. Good callout. I just pushed a commit that adds two flags:
I looked at the options implementation in docker/cli and turns out adding I think this change is appropriate since it mimics what we do in the core CLI. 0f4cffc#diff-9059958acfc03b30a2ff8fda8c5bb8403e63b17d7f32cdefe4611817db5cd191R57-R60 |
Plugin: true, | ||
Plugin: false, |
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.
Why were these changes needed? (Just curious as I couldn't immediately associate with the change in this PR)
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.
Let's merge this |
Signed-off-by: David Karlsson <[email protected]>
Signed-off-by: David Karlsson <[email protected]>
Adds a hidden --help flag (like in docker/cli) and a dummy -H flag Signed-off-by: David Karlsson <[email protected]>
0f4cffc
to
7d56538
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.
LGTM
I've used this version to generate markdown here:
I've also generated yaml (for docker/cli) here: docker/docs@b9ca733 |
Let's get this one in |
We're already calling loadLongDescription recursively, no need to range over the subcommands, otherwise we're skipping the root command.