()
| 29 | ) |
| 30 | |
| 31 | func PauseCommand() *cobra.Command { |
| 32 | var cmd = &cobra.Command{ |
| 33 | Use: "pause [flags] CONTAINER [CONTAINER, ...]", |
| 34 | Args: cobra.MinimumNArgs(1), |
| 35 | Short: "Pause all processes within one or more containers", |
| 36 | RunE: pauseAction, |
| 37 | ValidArgsFunction: pauseShellComplete, |
| 38 | SilenceUsage: true, |
| 39 | SilenceErrors: true, |
| 40 | } |
| 41 | return cmd |
| 42 | } |
| 43 | |
| 44 | func pauseOptions(cmd *cobra.Command) (types.ContainerPauseOptions, error) { |
| 45 | globalOptions, err := helpers.ProcessRootCmdFlags(cmd) |