Skip to content

Use spf13/cobra for docker stop#23276

Merged
vdemeester merged 1 commit intomoby:masterfrom
yongtang:23211-spf13-cobra-stop
Jun 5, 2016
Merged

Use spf13/cobra for docker stop#23276
vdemeester merged 1 commit intomoby:masterfrom
yongtang:23211-spf13-cobra-stop

Conversation

@yongtang
Copy link
Copy Markdown
Member

@yongtang yongtang commented Jun 5, 2016

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 [email protected]

This fix is part of the effort to convert commands to spf13/cobra moby#23211.

Thif fix coverted command `docker stop` to use spf13/cobra

Signed-off-by: Yong Tang <[email protected]>
@thaJeztah
Copy link
Copy Markdown
Member

Looks like we may need to add some extra parsing if people use a single dash (but that's probably a "global" change, not for this PR);

docker stop -time=20 aa bb
invalid argument "ime=20" for time=20: strconv.ParseInt: parsing "ime=20": invalid syntax
See 'docker stop --help'.

@vdemeester @dnephin wdyt? ^^

@thaJeztah
Copy link
Copy Markdown
Member

(current error looks like this);

docker stop -time=20 aa
invalid value "aa" for flag -t: strconv.ParseInt: parsing "aa": invalid syntax
See 'docker stop --help'.
flag provided but not defined: -time
See 'docker stop --help'.

@thaJeztah
Copy link
Copy Markdown
Member

LGTM (unless we decide to make that change as part of this PR)

@vdemeester
Copy link
Copy Markdown
Member

@thaJeztah yeah this can be changed after (and both error are not really good anyway 👼)
LGTM 🐼

@vdemeester vdemeester merged commit b259558 into moby:master Jun 5, 2016
@yongtang yongtang deleted the 23211-spf13-cobra-stop branch June 5, 2016 21:07
dnephin pushed a commit to dnephin/docker that referenced this pull request Apr 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants