newContextCommand returns the context cli subcommand
(dockerCLI command.Cli)
| 13 | |
| 14 | // newContextCommand returns the context cli subcommand |
| 15 | func newContextCommand(dockerCLI command.Cli) *cobra.Command { |
| 16 | cmd := &cobra.Command{ |
| 17 | Use: "context", |
| 18 | Short: "Manage contexts", |
| 19 | Args: cli.NoArgs, |
| 20 | RunE: command.ShowHelp(dockerCLI.Err()), |
| 21 | |
| 22 | DisableFlagsInUseLine: true, |
| 23 | } |
| 24 | cmd.AddCommand( |
| 25 | newCreateCommand(dockerCLI), |
| 26 | newListCommand(dockerCLI), |
| 27 | newUseCommand(dockerCLI), |
| 28 | newExportCommand(dockerCLI), |
| 29 | newImportCommand(dockerCLI), |
| 30 | newRemoveCommand(dockerCLI), |
| 31 | newUpdateCommand(dockerCLI), |
| 32 | newInspectCommand(dockerCLI), |
| 33 | newShowCommand(dockerCLI), |
| 34 | ) |
| 35 | return cmd |
| 36 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…