usage.go 531 B

123456789101112131415161718192021
  1. package cli
  2. // Command is the struct containing the command name and description
  3. type Command struct {
  4. Name string
  5. Description string
  6. }
  7. // DockerCommandUsage lists the top level docker commands and their short usage
  8. var DockerCommandUsage = []Command{
  9. {"inspect", "Return low-level information on a container, image or task"},
  10. }
  11. // DockerCommands stores all the docker command
  12. var DockerCommands = make(map[string]Command)
  13. func init() {
  14. for _, cmd := range DockerCommandUsage {
  15. DockerCommands[cmd.Name] = cmd
  16. }
  17. }