github.com/noxiouz/docker@v0.7.3-0.20160629055221-3d231c78e8c5/api/client/commands.go (about) 1 package client 2 3 // Command returns a cli command handler if one exists 4 func (cli *DockerCli) Command(name string) func(...string) error { 5 return map[string]func(...string) error{ 6 "exec": cli.CmdExec, 7 "inspect": cli.CmdInspect, 8 }[name] 9 }