// pulled out for simplicity; neither known or running func ListDatas(do *definitions.Do) error { var result string var err error if do.Quiet { result = strings.Join(util.DataContainerNames(), "\n") do.Result = result log.Warn(result) } else { result, err = PrintTableReport("data", true, true) if err != nil { return err } log.Warn("Active data containers:") log.Warn(result) } return nil }
func ListKnown(do *definitions.Do) error { do.Result = strings.Join(util.DataContainerNames(), "\n") return nil }