Exemple #1
0
// List prints a summary of installed components.
func (c *Client) List(argv []string) error {
	usage := `Prints a list of installed units.

Usage:
  deisctl list [options]
`
	// parse command-line arguments
	if _, err := docopt.Parse(usage, argv, true, "", false); err != nil {
		return err
	}
	return cmd.ListUnits(c.Backend)
}
Exemple #2
0
// List prints a summary of installed components.
func (c *Client) List(argv []string) error {
	return cmd.ListUnits(argv, c.Backend)
}