usage.go 767 B

12345678910111213141516171819202122232425
  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. {"cp", "Copy files/folders between a container and the local filesystem"},
  10. {"exec", "Run a command in a running container"},
  11. {"info", "Display system-wide information"},
  12. {"inspect", "Return low-level information on a container, image or task"},
  13. {"update", "Update configuration of one or more containers"},
  14. }
  15. // DockerCommands stores all the docker command
  16. var DockerCommands = make(map[string]Command)
  17. func init() {
  18. for _, cmd := range DockerCommandUsage {
  19. DockerCommands[cmd.Name] = cmd
  20. }
  21. }