Vincent Demeester
dd2c65392f
Merge pull request #23268 from WeiZhang555/cobra-start
...
Migrate start command to cobra
2016-06-06 08:59:42 +02:00
Zhang Wei
217e98c710
Migrate start command to cobra
...
Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
2016-06-06 09:53:18 +08:00
Yong Tang
316ab12eed
Use spf13/cobra for docker unpause
...
This fix is part of the effort to convert commands to spf13/cobra #23211 .
Thif fix coverted command `docker unpause` to use spf13/cobra
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-06-05 17:29:52 -07:00
Vincent Demeester
894cc1f201
Use spf13/cobra for docker rmi
...
Moves image command rmi to `api/client/image/remove.go` and use cobra :)
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-06-05 22:40:35 +02:00
Vincent Demeester
713f88ec6f
Merge pull request #23276 from yongtang/23211-spf13-cobra-stop
...
Use spf13/cobra for docker stop
2016-06-05 22:37:15 +02:00
Yong Tang
4770a4ba82
Use spf13/cobra for docker stop
...
This fix is part of the effort to convert commands to spf13/cobra #23211 .
Thif fix coverted command `docker stop` to use spf13/cobra
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-06-05 10:25:21 -07:00
Vincent Demeester
6ee903eea0
Migrate export command to cobra
...
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-06-05 16:42:19 +02:00
Daniel Nephin
69d3037635
Convert 'docker create' to use cobra and pflag
...
Return the correct status code on flag parsins errors.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-06-04 13:57:30 +02:00
Daniel Nephin
396c0660ab
Convert 'docker run' to a cobra command and to use pflags
...
Move container options into a struct so that tests should pass.
Remove unused FlagSet arg from Parse
Disable interspersed args on docker run
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-06-04 13:55:35 +02:00
Vincent Demeester
bbefa88a8c
Use spf13/cobra for docker search
...
- Move image command search to `api/client/image/search.go`
- Use cobra :)
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-06-03 19:50:01 +02:00
Daniel Nephin
82c85e1e83
Make the -h flag deprecated.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-05-31 15:43:16 -07:00
Daniel Nephin
11ede59379
Support usage messages on bad flags.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-05-31 15:43:16 -07:00
Daniel Nephin
13cea4e58d
Update usage and help to (almost) match the existing docker behaviour
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-05-31 14:41:37 -07:00
Daniel Nephin
4786ccd05c
Migrate volume commands to cobra.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-05-31 14:41:37 -07:00