Uh oh!
There was an error while loading. Please reload this page.
fix: generate long desc and examples for root command - #53
Conversation
dvdksn
commented
Apr 12, 2024
@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. |
Uh oh!
There was an error while loading. Please reload this page.
ab5ac4f to
adf75cbCompareCodecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Uh oh!
There was an error while loading. Please reload this page.
fc01364 to
9712509CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
thaJeztah
commented
May 27, 2024
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 |
| Root: dockerCmd, | ||
| SourceDir: tmpdir, | ||
| Plugin: true, | ||
| Plugin: false, |
There was a problem hiding this comment.
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.
dvdksn
commented
Jul 2, 2024
Let's merge this |
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
Adds a hidden --help flag (like in docker/cli) and a dummy -H flag Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
0f4cffc to
7d56538Comparedvdksn
commented
Jul 2, 2024
I've used this version to generate markdown here:
I've also generated yaml (for docker/cli) here: docker/docs@b9ca733 |
crazy-max
commented
Jul 2, 2024
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.