Command to value receiver.
Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>
"github.com/sirupsen/logrus"
)
-var Command = &command{}
+var Command = command{}
type command struct {
uuids arrayFlags
}
// RunCommand implements the subcommand "costanalyzer <collection> <collection> ..."
-func (c *command) RunCommand(prog string, args []string, stdin io.Reader, stdout, stderr io.Writer) int {
+func (c command) RunCommand(prog string, args []string, stdin io.Reader, stdout, stderr io.Writer) int {
var err error
logger := ctxlog.New(stderr, "text", "info")
defer func() {
exitCode = 2
return
}
- fmt.Printf("UUIDS: %s\n", c.uuids)
lvl, err := logrus.ParseLevel(*loglevel)
if err != nil {
createNodeJSON(c, arv, ac, kc, arvadostest.CompletedDiagnosticsHasher3ContainerRequestUUID, arvadostest.Hasher3LogCollectionUUID, legacyD1V2JSON)
}
-func (s *Suite) SetUpTest(c *check.C) {
- Command = &command{}
-}
-
func createNodeJSON(c *check.C, arv *arvadosclient.ArvadosClient, ac *arvados.Client, kc *keepclient.KeepClient, crUUID string, logUUID string, nodeJSON string) {
// Get the CR
var cr arvados.ContainerRequest