github.com/portworx/docker@v1.12.1/cli/usage.go (about) 1 package cli 2 3 // Command is the struct containing the command name and description 4 type Command struct { 5 Name string 6 Description string 7 } 8 9 // DockerCommandUsage lists the top level docker commands and their short usage 10 var DockerCommandUsage = []Command{ 11 {"exec", "Run a command in a running container"}, 12 {"info", "Display system-wide information"}, 13 {"inspect", "Return low-level information on a container, image or task"}, 14 {"update", "Update configuration of one or more containers"}, 15 } 16 17 // DockerCommands stores all the docker command 18 var DockerCommands = make(map[string]Command) 19 20 func init() { 21 for _, cmd := range DockerCommandUsage { 22 DockerCommands[cmd.Name] = cmd 23 } 24 }