Ejemplo n.º 1
0
// Journal prints log output for the specified components.
func (c *Client) Journal(argv []string) error {
	usage := `Prints log output for the specified components.

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

	return cmd.Journal(args["<target>"].([]string), c.Backend)
}
Ejemplo n.º 2
0
// Journal prints log output for the specified components.
func (c *Client) Journal(argv []string) error {
	return cmd.Journal(argv, c.Backend)
}