fix signal passing to mobycli

Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
aiordache 2020-08-04 17:41:49 +02:00 committed by Guillaume Tardif
parent e0f8289f1c
commit d1b8bcb2c7
8 changed files with 17 additions and 20 deletions

View file

@ -70,7 +70,8 @@ $ docker context create my-context --description "some description" --docker "ho
Use: "create CONTEXT",
Short: "Create new context",
RunE: func(cmd *cobra.Command, args []string) error {
return mobycli.ExecCmd(cmd)
mobycli.Exec()
return nil
},
Long: longHelp,
}

View file

@ -27,7 +27,8 @@ func inspectCommand() *cobra.Command {
Use: "inspect",
Short: "Display detailed information on one or more contexts",
RunE: func(cmd *cobra.Command, args []string) error {
return mobycli.ExecCmd(cmd)
mobycli.Exec()
return nil
},
}
// flags matching delegated command in moby cli

View file

@ -69,7 +69,8 @@ func runList(cmd *cobra.Command, opts lsOpts) error {
return err
}
if opts.format != "" {
return mobycli.ExecCmd(cmd)
mobycli.Exec()
return nil
}
ctx := cmd.Context()