github.com/kunnos/engine@v1.13.1/cli/command/container/cmd.go (about)

     1  package container
     2  
     3  import (
     4  	"github.com/spf13/cobra"
     5  
     6  	"github.com/docker/docker/cli"
     7  	"github.com/docker/docker/cli/command"
     8  )
     9  
    10  // NewContainerCommand returns a cobra command for `container` subcommands
    11  func NewContainerCommand(dockerCli *command.DockerCli) *cobra.Command {
    12  	cmd := &cobra.Command{
    13  		Use:   "container",
    14  		Short: "Manage containers",
    15  		Args:  cli.NoArgs,
    16  		RunE:  dockerCli.ShowHelp,
    17  	}
    18  	cmd.AddCommand(
    19  		NewAttachCommand(dockerCli),
    20  		NewCommitCommand(dockerCli),
    21  		NewCopyCommand(dockerCli),
    22  		NewCreateCommand(dockerCli),
    23  		NewDiffCommand(dockerCli),
    24  		NewExecCommand(dockerCli),
    25  		NewExportCommand(dockerCli),
    26  		NewKillCommand(dockerCli),
    27  		NewLogsCommand(dockerCli),
    28  		NewPauseCommand(dockerCli),
    29  		NewPortCommand(dockerCli),
    30  		NewRenameCommand(dockerCli),
    31  		NewRestartCommand(dockerCli),
    32  		NewRmCommand(dockerCli),
    33  		NewRunCommand(dockerCli),
    34  		NewStartCommand(dockerCli),
    35  		NewStatsCommand(dockerCli),
    36  		NewStopCommand(dockerCli),
    37  		NewTopCommand(dockerCli),
    38  		NewUnpauseCommand(dockerCli),
    39  		NewUpdateCommand(dockerCli),
    40  		NewWaitCommand(dockerCli),
    41  		newListCommand(dockerCli),
    42  		newInspectCommand(dockerCli),
    43  		NewPruneCommand(dockerCli),
    44  	)
    45  	return cmd
    46  }