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
Convert docker and dockerd commands to spf13/cobra #25354
Conversation
eb1d84e
to
6fe55a3
Compare
@dnephin Test failures seem related. |
I think they are related. Having some trouble finding the cause, but still working on it. |
6fe55a3
to
ba1daa8
Compare
ba1daa8
to
954de5c
Compare
4a90e29
to
40c3a15
Compare
8f09eac
to
2b83d17
Compare
This is green! |
76d3804
to
1357c1e
Compare
@@ -4,12 +4,22 @@ package main | |||
|
|||
import ( | |||
"fmt" | |||
"github.com/spf13/cobra" |
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.
nit: this import is misplaced 👼
LGTM 🐸 |
LGTM |
Support command traversal Signed-off-by: Daniel Nephin <dnephin@docker.com>
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Fix the daemon proxy for cobra commands. Signed-off-by: Daniel Nephin <dnephin@docker.com>
Improve error messages raised by assert. Signed-off-by: Daniel Nephin <dnephin@docker.com>
Cleanup cobra integration Update windows files for cobra and pflags Cleanup SetupRootcmd, and remove unnecessary SetFlagErrorFunc. Use cobra command traversal Signed-off-by: Daniel Nephin <dnephin@docker.com>
Also consolidate the leftover packages under cli. Remove pkg/mflag. Make manpage generation work with new cobra layout. Remove remaining mflag and fix tests after rebase with master. Signed-off-by: Daniel Nephin <dnephin@docker.com>
1357c1e
to
6e7405e
Compare
Support args to RunCommand Fix docker help text test. Fix for ipv6 tests. Fix TLSverify option. Fix TestDaemonDiscoveryBackendConfigReload Use tempfile for another test. Restore missing flag. Fix tests for removal of shlex. Signed-off-by: Daniel Nephin <dnephin@docker.com>
You bet! We just did. |
This is breaking master, with this ExecStart (note using the compat
I'm getting:
This has somehow broke the old |
@dnephin can we also add a test which uses |
@runcom ok, i'll take a look, and add the missing test. i thought we had one for that. |
Fixes #23211
Fixes #25547
pkg/mflag
cli/
and consolidates the rest of the package into fewer files