mirror of
https://github.com/docker/compose.git
synced 2026-08-31 23:03:55 +00:00
Do not restrict docker inspect to 1 arg, can be zero (inspect current context), one or several.
Especially, inspect with zero param is already used by VSCode. Cf https://github.com/docker/desktop-microsoft/issues/19
This commit is contained in:
parent
1623584303
commit
1bb2909d1a
2 changed files with 8 additions and 1 deletions
|
|
@ -37,10 +37,12 @@ func inspectCommand() *cobra.Command {
|
|||
cmd := &cobra.Command{
|
||||
Use: "inspect",
|
||||
Short: "Display detailed information on one or more contexts",
|
||||
Args: cobra.ExactArgs(1),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return mobycli.ExecCmd(cmd)
|
||||
},
|
||||
}
|
||||
// flags matching delegated command in moby cli
|
||||
flags := cmd.Flags()
|
||||
flags.StringP("format", "f", "", "Format the output using the given Go template")
|
||||
return cmd
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue