MCPcopy Create free account
hub / github.com/containerd/nerdctl / PauseCommand

Function PauseCommand

cmd/nerdctl/container/container_pause.go:31–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29)
30
31func 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
44func pauseOptions(cmd *cobra.Command) (types.ContainerPauseOptions, error) {
45 globalOptions, err := helpers.ProcessRootCmdFlags(cmd)

Callers 2

newAppFunction · 0.92
CommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…