1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: Apache-2.0
11 "git.arvados.org/arvados.git/lib/cmd"
12 "git.arvados.org/arvados.git/sdk/go/ctxlog"
15 var Command = command{}
25 // RunCommand implements the subcommand "costanalyzer <collection> <collection> ..."
26 func (c command) RunCommand(prog string, args []string, stdin io.Reader, stdout, stderr io.Writer) int {
28 logger := ctxlog.New(stderr, "text", "info")
29 logger.SetFormatter(cmd.NoPrefixFormatter{})
32 logger.Error("\n" + err.Error())
36 exitcode, err := c.costAnalyzer(prog, args, logger, stdout, stderr)