()
| 23 | ) |
| 24 | |
| 25 | func Command() *cobra.Command { |
| 26 | cmd := &cobra.Command{ |
| 27 | Annotations: map[string]string{helpers.Category: helpers.Management}, |
| 28 | Use: "container", |
| 29 | Short: "Manage containers", |
| 30 | RunE: helpers.UnknownSubcommandAction, |
| 31 | SilenceUsage: true, |
| 32 | SilenceErrors: true, |
| 33 | } |
| 34 | cmd.AddCommand( |
| 35 | CreateCommand(), |
| 36 | RunCommand(), |
| 37 | UpdateCommand(), |
| 38 | ExecCommand(), |
| 39 | listCommand(), |
| 40 | inspectCommand(), |
| 41 | LogsCommand(), |
| 42 | PortCommand(), |
| 43 | RemoveCommand(), |
| 44 | StopCommand(), |
| 45 | StartCommand(), |
| 46 | RestartCommand(), |
| 47 | KillCommand(), |
| 48 | PauseCommand(), |
| 49 | DiffCommand(), |
| 50 | WaitCommand(), |
| 51 | UnpauseCommand(), |
| 52 | CommitCommand(), |
| 53 | RenameCommand(), |
| 54 | pruneCommand(), |
| 55 | StatsCommand(), |
| 56 | AttachCommand(), |
| 57 | HealthCheckCommand(), |
| 58 | ExportCommand(), |
| 59 | ) |
| 60 | AddCpCommand(cmd) |
| 61 | return cmd |
| 62 | } |
| 63 | |
| 64 | func listCommand() *cobra.Command { |
| 65 | x := PsCommand() |
no test coverage detected
searching dependent graphs…