X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/611a3323ea110671c5fa021e14f93b24e4a6d7b7..7b5729d984a9c516920270250f050bf72f1896d1:/sdk/cli/bin/arv diff --git a/sdk/cli/bin/arv b/sdk/cli/bin/arv index 8c7e6f179d..533ea39eb7 100755 --- a/sdk/cli/bin/arv +++ b/sdk/cli/bin/arv @@ -113,7 +113,8 @@ def init_config end end -subcommands = %w(create edit keep pipeline tag ws) + +subcommands = %w(copy create edit keep pipeline run tag ws) def check_subcommands client, arvados, subcommand, global_opts, remaining_opts case subcommand @@ -121,9 +122,11 @@ def check_subcommands client, arvados, subcommand, global_opts, remaining_opts arv_create client, arvados, global_opts, remaining_opts when 'edit' arv_edit client, arvados, global_opts, remaining_opts + when 'copy', 'tag', 'ws', 'run' + exec `which arv-#{subcommand}`.strip, *remaining_opts when 'keep' @sub = remaining_opts.shift - if ['get', 'put', 'ls', 'normalize', 'copy'].index @sub then + if ['get', 'put', 'ls', 'normalize'].index @sub then # Native Arvados exec `which arv-#{@sub}`.strip, *remaining_opts elsif ['less', 'check'].index @sub then @@ -147,10 +150,6 @@ def check_subcommands client, arvados, subcommand, global_opts, remaining_opts puts "Available methods: run" end abort - when 'tag' - exec `which arv-tag`.strip, *remaining_opts - when 'ws' - exec `which arv-ws`.strip, *remaining_opts end end