This is way more convenient, thanks.
$ arvados-client costanalyzer -output /tmp/ca --uuid su92l-4zz18-hry71275jl44dui
...
8.95688399
Specifying multiple collections/containers would be even more convenient if I could do this:
$ arvados-client costanalyzer -output /tmp/ca su92l-4zz18-a5a0ydd2feqcobz su92l-4zz18-2fmt581375q8tv6 su92l-4zz18-w1usu1jeq0jc1wm su92l-4zz18-4g3kijra6qx19k4
(Seems like we could treat everything in flag.Args() as a UUID after parsing other flags, unless we're reserving those positional args for something else?)
After accidentally testing collection UUIDs on an older version I noticed bogus --uuid
args are silently ignored:
$ arvados-client costanalyzer -output /tmp/ca --uuid bogus --uuid su92l-4zz18-hry71275jl44dui
...
8.95688399
$ echo $?
0
$ arvados-client costanalyzer -output /tmp/ca --uuid bogus
Nothing to do!
$ echo $?
0
Both of those cases should probably be considered errors.
This type assertion will panic on {"properties":{"container_request":["foo"]}}
-- should do a 2-value type assertion and return an error instead.
crUUID = value.(string)
Yet another feature request: now that I get total cost on stdout, I often don't even care about the details that get saved in the output dir, so it would be nice if -output=/dev/null
or -output=""
meant "don't bother writing any csv files" and I didn't need to create/specify a superfluous output dir -- perhaps that could even be the default?