Uh oh!
There was an error while loading. Please reload this page.
cli reference overview base cmd - #5010
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@## master #5010 +/- ##
=======================================
Coverage 61.48% 61.48% =======================================
Files 298 298 Lines 20814 20814 =======================================
Hits 12797 12797 Misses 7105 7105 Partials 912 912 |
Uh oh!
There was an error while loading. Please reload this page.
81ae886 to
c220581Comparec220581 to
719f88eCompare719f88e to
eca29b5Compareeca29b5 to
218fbf8CompareUh oh!
There was an error while loading. Please reload this page.
| You can specify options like `-a=[]` multiple times in a single command line, | ||
| for example in these commands: | ||
| ```console | ||
| $ docker run -a stdin -a stdout -i -t ubuntu /bin/bash | ||
| $ docker run -a stdin -a stdout -a stderr ubuntu /bin/ls |
There was a problem hiding this comment.
Not for this PR, but we need to look at some of these; -a / --attach is shown as list, and those can take multiple values, but for other flags, Cobra is good at silently ignoring duplicates, and in that case overriding previous values. (e.g. -i -i=false -i=true -i)
Also for a follow-up, we should pick a different example than -a, as it's really more of an "expert" use-case to set that. Perhaps something like -e / --env or something common could be a good one to pick as example (the --env one can be nice as we could show the result;
$ docker run --rm -e ENV_ONE=one -e ENV_TWO=two alpine printenv
ENV_ONE=one
ENV_TWO=two
<...>```.Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
218fbf8 to
dc22572Compare
- What I did
Moves the
cli.mdfile to become thedocker.mdbase command reference.This file contains a lot of information about how the CLI and its flags work, base flags, configuration file, and environment variables. I think it makes more sense to have it on the base command page than in a separate place.
Needs:
- How I did it
- How to verify it
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)