46 lines
815 B
Go
46 lines
815 B
Go
package main
|
|
|
|
import (
|
|
"github.com/urfave/cli"
|
|
)
|
|
|
|
var (
|
|
subCommands = []cli.Command{
|
|
attachCommand,
|
|
commitCommand,
|
|
createCommand,
|
|
diffCommand,
|
|
execCommand,
|
|
exportCommand,
|
|
inspectCommand,
|
|
killCommand,
|
|
logsCommand,
|
|
lsCommand,
|
|
mountCommand,
|
|
pauseCommand,
|
|
portCommand,
|
|
// pruneCommand,
|
|
restartCommand,
|
|
rmCommand,
|
|
runCommand,
|
|
startCommand,
|
|
statsCommand,
|
|
stopCommand,
|
|
topCommand,
|
|
umountCommand,
|
|
unpauseCommand,
|
|
// updateCommand,
|
|
waitCommand,
|
|
}
|
|
|
|
containerDescription = "Manage containers"
|
|
containerCommand = cli.Command{
|
|
Name: "container",
|
|
Usage: "container COMMAND",
|
|
Description: containerDescription,
|
|
ArgsUsage: "",
|
|
Subcommands: subCommands,
|
|
UseShortOptionHandling: true,
|
|
}
|
|
)
|