github.com/noxiouz/docker@v0.7.3-0.20160629055221-3d231c78e8c5/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 {"inspect", "Return low-level information on a container, image or task"}, 13 } 14 15 // DockerCommands stores all the docker command 16 var DockerCommands = make(map[string]Command) 17 18 func init() { 19 for _, cmd := range DockerCommandUsage { 20 DockerCommands[cmd.Name] = cmd 21 } 22 }