// Journal prints log output for the specified components. func Journal(targets []string, b backend.Backend) error { for _, target := range targets { if err := b.Journal(target); err != nil { return err } } return nil }
// Journal prints log output for the specified components. func Journal(argv []string, b backend.Backend) 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 } targets := args["<target>"].([]string) for _, target := range targets { if err := b.Journal(target); err != nil { return err } } return nil }