2016-04-29 15:16:34 +00:00
|
|
|
package client
|
|
|
|
|
|
|
|
// Command returns a cli command handler if one exists
|
|
|
|
func (cli *DockerCli) Command(name string) func(...string) error {
|
|
|
|
return map[string]func(...string) error{
|
2016-06-06 08:28:52 +00:00
|
|
|
"exec": cli.CmdExec,
|
|
|
|
"inspect": cli.CmdInspect,
|
2016-04-29 15:16:34 +00:00
|
|
|
}[name]
|
|
|
|
}
|