// Restart stops and then starts components. func (c *Client) Restart(argv []string) error { usage := `Stops and then starts the specified components. Usage: deisctl restart [<target>...] [options] ` // parse command-line arguments args, err := docopt.Parse(usage, argv, true, "", false) if err != nil { return err } return cmd.Restart(args["<target>"].([]string), c.Backend) }
// Restart stops and then starts components. func (c *Client) Restart(argv []string) error { return cmd.Restart(argv, c.Backend) }