Exemplo n.º 1
0
// Status prints the current status of components.
func (c *Client) Status(argv []string) error {
	usage := `Prints the current status of components.

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

	return cmd.Status(args["<target>"].([]string), c.Backend)
}
Exemplo n.º 2
0
// Status prints the current status of components.
func (c *Client) Status(argv []string) error {
	return cmd.Status(argv, c.Backend)
}