Пример #1
0
// Start activates the specified components.
func (c *Client) Start(argv []string) error {
	usage := `Activates the specified components.

Usage:
  deisctl start [<target>...] [options]
`
	// parse command-line arguments
	args, err := docopt.Parse(usage, argv, true, "", false)
	if err != nil {
		return err
	}

	return cmd.Start(args["<target>"].([]string), c.Backend)
}
Пример #2
0
// Start activates the specified components.
func (c *Client) Start(argv []string) error {
	return cmd.Start(argv, c.Backend)
}