Skip to content

Commit e6ddffc

Browse files
committed
fix: make exec-id flag required in exec command
Signed-off-by: jonyhy <[email protected]>
1 parent 0f27a42 commit e6ddffc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cmd/ctr/commands/tasks/exec.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import (
3131
"github.com/urfave/cli"
3232
)
3333

34-
//TODO:(jessvalarezo) exec-id is optional here, update to required arg
3534
var execCommand = cli.Command{
3635
Name: "exec",
3736
Usage: "execute additional processes in an existing container",
@@ -51,8 +50,9 @@ var execCommand = cli.Command{
5150
Usage: "detach from the task after it has started execution",
5251
},
5352
cli.StringFlag{
54-
Name: "exec-id",
55-
Usage: "exec specific id for the process",
53+
Name: "exec-id",
54+
Required: true,
55+
Usage: "exec specific id for the process",
5656
},
5757
cli.StringFlag{
5858
Name: "fifo-dir",

0 commit comments

Comments
 (0)