2016-09-08 13:11:39 -04:00
|
|
|
package commands
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/docker/docker/cli/command"
|
2016-05-12 10:52:00 -04:00
|
|
|
"github.com/docker/docker/cli/command/checkpoint"
|
2016-09-08 13:11:39 -04:00
|
|
|
"github.com/docker/docker/cli/command/container"
|
|
|
|
"github.com/docker/docker/cli/command/image"
|
|
|
|
"github.com/docker/docker/cli/command/network"
|
|
|
|
"github.com/docker/docker/cli/command/node"
|
|
|
|
"github.com/docker/docker/cli/command/plugin"
|
|
|
|
"github.com/docker/docker/cli/command/registry"
|
|
|
|
"github.com/docker/docker/cli/command/service"
|
|
|
|
"github.com/docker/docker/cli/command/stack"
|
|
|
|
"github.com/docker/docker/cli/command/swarm"
|
|
|
|
"github.com/docker/docker/cli/command/system"
|
|
|
|
"github.com/docker/docker/cli/command/volume"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
2016-09-08 14:54:01 -04:00
|
|
|
// AddCommands adds all the commands from cli/command to the root command
|
2016-09-08 13:11:39 -04:00
|
|
|
func AddCommands(cmd *cobra.Command, dockerCli *command.DockerCli) {
|
|
|
|
cmd.AddCommand(
|
|
|
|
node.NewNodeCommand(dockerCli),
|
|
|
|
service.NewServiceCommand(dockerCli),
|
|
|
|
stack.NewStackCommand(dockerCli),
|
|
|
|
stack.NewTopLevelDeployCommand(dockerCli),
|
|
|
|
swarm.NewSwarmCommand(dockerCli),
|
|
|
|
container.NewAttachCommand(dockerCli),
|
|
|
|
container.NewCommitCommand(dockerCli),
|
|
|
|
container.NewCopyCommand(dockerCli),
|
|
|
|
container.NewCreateCommand(dockerCli),
|
|
|
|
container.NewDiffCommand(dockerCli),
|
|
|
|
container.NewExecCommand(dockerCli),
|
|
|
|
container.NewExportCommand(dockerCli),
|
|
|
|
container.NewKillCommand(dockerCli),
|
|
|
|
container.NewLogsCommand(dockerCli),
|
|
|
|
container.NewPauseCommand(dockerCli),
|
|
|
|
container.NewPortCommand(dockerCli),
|
|
|
|
container.NewPsCommand(dockerCli),
|
|
|
|
container.NewRenameCommand(dockerCli),
|
|
|
|
container.NewRestartCommand(dockerCli),
|
|
|
|
container.NewRmCommand(dockerCli),
|
|
|
|
container.NewRunCommand(dockerCli),
|
|
|
|
container.NewStartCommand(dockerCli),
|
|
|
|
container.NewStatsCommand(dockerCli),
|
|
|
|
container.NewStopCommand(dockerCli),
|
|
|
|
container.NewTopCommand(dockerCli),
|
|
|
|
container.NewUnpauseCommand(dockerCli),
|
|
|
|
container.NewUpdateCommand(dockerCli),
|
|
|
|
container.NewWaitCommand(dockerCli),
|
|
|
|
image.NewBuildCommand(dockerCli),
|
|
|
|
image.NewHistoryCommand(dockerCli),
|
|
|
|
image.NewImagesCommand(dockerCli),
|
|
|
|
image.NewLoadCommand(dockerCli),
|
|
|
|
image.NewRemoveCommand(dockerCli),
|
|
|
|
image.NewSaveCommand(dockerCli),
|
|
|
|
image.NewPullCommand(dockerCli),
|
|
|
|
image.NewPushCommand(dockerCli),
|
|
|
|
image.NewSearchCommand(dockerCli),
|
|
|
|
image.NewImportCommand(dockerCli),
|
|
|
|
image.NewTagCommand(dockerCli),
|
|
|
|
network.NewNetworkCommand(dockerCli),
|
|
|
|
system.NewEventsCommand(dockerCli),
|
|
|
|
system.NewInspectCommand(dockerCli),
|
|
|
|
registry.NewLoginCommand(dockerCli),
|
|
|
|
registry.NewLogoutCommand(dockerCli),
|
|
|
|
system.NewVersionCommand(dockerCli),
|
|
|
|
volume.NewVolumeCommand(dockerCli),
|
|
|
|
system.NewInfoCommand(dockerCli),
|
|
|
|
)
|
2016-05-12 10:52:00 -04:00
|
|
|
checkpoint.NewCheckpointCommand(cmd, dockerCli)
|
2016-09-08 13:11:39 -04:00
|
|
|
plugin.NewPluginCommand(cmd, dockerCli)
|
|
|
|
}
|