Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 75322d9

Browse files
authored
Merge pull request #202 from carmark/wait
add wait command
2 parents 06412f3 + 49c5fc1 commit 75322d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/client/wait.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
// If more than one container is specified, this will wait synchronously on each container.
1616
//
1717
// Usage: docker wait CONTAINER [CONTAINER...]
18-
func (cli *DockerCli) Wait(args ...string) error {
18+
func (cli *DockerCli) CmdWait(args ...string) error {
1919
cmd := Cli.Subcmd("wait", []string{"CONTAINER [CONTAINER...]"}, Cli.DockerCommands["wait"].Description, true)
2020
cmd.Require(flag.Min, 1)
2121

cli/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ var dockerCommands = []Command{
7070
{"volume", "Manage Hyper.sh volumes"},
7171
{"snapshot", "Manage Hyper.sh snapshots"},
7272
{"fip", "Manage Hyper.sh floating IPs"},
73-
//{"wait", "Block until a container stops, then print its exit code"},
73+
{"wait", "Block until a container stops, then print its exit code"},
7474
{"compose", "Define and run multi-container applications with Hyper.sh"},
7575
{"sg", "Manage security group of Hyper.sh"},
7676
{"service", "Manage service of Hyper.sh"},

0 commit comments

Comments
 (0)