[ARVADOS] updated: d8277401f758f9a45dfa166205e3b77708ac142d
git at public.curoverse.com
git at public.curoverse.com
Fri Jun 20 11:17:30 EDT 2014
Summary of changes:
sdk/cli/bin/arv | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
via d8277401f758f9a45dfa166205e3b77708ac142d (commit)
from 703281ec6c4d82bff1736788c8e93155f53663f9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit d8277401f758f9a45dfa166205e3b77708ac142d
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Fri Jun 20 11:16:54 2014 -0400
2986: Can now specify which fields you want to edit, because fields like 'uuid'
and 'modified_at' are not updatable.
diff --git a/sdk/cli/bin/arv b/sdk/cli/bin/arv
index 26fa154..4ce0940 100755
--- a/sdk/cli/bin/arv
+++ b/sdk/cli/bin/arv
@@ -139,11 +139,11 @@ def arv_edit client, arvados, global_opts, remaining_opts
n = remaining_opts.shift
if n.nil? or n == "-h" or n == "--help"
puts head_banner
- puts "Usage: arv edit [uuid]\n\n"
- puts "Fetchs the specified Arvados object, opens an interactive text\n"
- puts "editor on a text representation (json or yaml, use --format)\n"
- puts "and then updates the object. Will use 'nano' by default, customize\n"
- puts "with the EDITOR or VISUAL environment variable."
+ puts "Usage: arv edit [uuid] [fields...]\n\n"
+ puts "Fetchs the specified Arvados object, select the specified fields, and\n"
+ puts "open an interactive text editor on a text representation (json or\n"
+ puts "yaml, use --format) and then updates the object. Will use 'nano'\n"
+ puts "by default, customize with the EDITOR or VISUAL environment variable.\n"
exit 255
end
@@ -186,6 +186,10 @@ def arv_edit client, arvados, global_opts, remaining_opts
abort "Failed to parse server response:\n" + e.to_s
end
+ if remaining_opts.length > 0
+ results.select! { |k, v| remaining_opts.include? k }
+ end
+
content = ""
case global_opts[:format]
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list