Skip to content

Commit

Permalink
bash completions - every command that uses --dir also supports --task…
Browse files Browse the repository at this point in the history
…/--instance (#5270)
  • Loading branch information
mapellidario authored Dec 1, 2023
1 parent f372163 commit c91e6bd
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions etc/crab-bash-completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ _UseCrab ()
"getlog")
case "$cur" in
-*)
COMPREPLY=( $(compgen -W '--help -h --short --dump --xrootd --quantity --parallel --wait --outputpath --jobids --checksum --command --proxy --dir -d ' -- $cur) )
COMPREPLY=( $(compgen -W '--help -h --short --dump --xrootd --quantity --parallel --wait --outputpath --jobids --checksum --command --proxy --dir -d --task --instance' -- $cur) )
;;
*)
COMPREPLY=( $(compgen -f $cur) )
Expand All @@ -67,7 +67,7 @@ _UseCrab ()
"kill")
case "$cur" in
-*)
COMPREPLY=( $(compgen -W '--help -h --killwarning --proxy --dir -d ' -- $cur) )
COMPREPLY=( $(compgen -W '--help -h --killwarning --proxy --dir -d --task --instance' -- $cur) )
;;
*)
COMPREPLY=( $(compgen -f $cur) )
Expand All @@ -87,7 +87,7 @@ _UseCrab ()
"out")
case "$cur" in
-*)
COMPREPLY=( $(compgen -W '--help -h --dump --xrootd --quantity --parallel --wait --outputpath --jobids --checksum --command --proxy --dir -d ' -- $cur) )
COMPREPLY=( $(compgen -W '--help -h --dump --xrootd --quantity --parallel --wait --outputpath --jobids --checksum --command --proxy --dir -d --task --instance' -- $cur) )
;;
*)
COMPREPLY=( $(compgen -f $cur) )
Expand All @@ -107,7 +107,7 @@ _UseCrab ()
"rep")
case "$cur" in
-*)
COMPREPLY=( $(compgen -W '--help -h --outputdir --recovery --dbs --proxy --dir -d ' -- $cur) )
COMPREPLY=( $(compgen -W '--help -h --outputdir --recovery --dbs --proxy --dir -d --task --instance' -- $cur) )
;;
*)
COMPREPLY=( $(compgen -f $cur) )
Expand Down Expand Up @@ -147,7 +147,7 @@ _UseCrab ()
"getoutput")
case "$cur" in
-*)
COMPREPLY=( $(compgen -W '--help -h --dump --xrootd --quantity --parallel --wait --outputpath --jobids --checksum --command --proxy --dir -d ' -- $cur) )
COMPREPLY=( $(compgen -W '--help -h --dump --xrootd --quantity --parallel --wait --outputpath --jobids --checksum --command --proxy --dir -d --task --instance' -- $cur) )
;;
*)
COMPREPLY=( $(compgen -f $cur) )
Expand All @@ -157,7 +157,7 @@ _UseCrab ()
"resubmit")
case "$cur" in
-*)
COMPREPLY=( $(compgen -W '--help -h --wait --force --publication --jobids --sitewhitelist --siteblacklist --maxjobruntime --maxmemory --numcores --priority --proxy --dir -d ' -- $cur) )
COMPREPLY=( $(compgen -W '--help -h --wait --force --publication --jobids --sitewhitelist --siteblacklist --maxjobruntime --maxmemory --numcores --priority --proxy --dir -d --task --instance' -- $cur) )
;;
*)
COMPREPLY=( $(compgen -f $cur) )
Expand All @@ -167,7 +167,7 @@ _UseCrab ()
"status")
case "$cur" in
-*)
COMPREPLY=( $(compgen -W '--help -h --long --json --summary --verboseErrors --sort --jobids --proxy --dir -d ' -- $cur) )
COMPREPLY=( $(compgen -W '--help -h --long --json --summary --verboseErrors --sort --jobids --proxy --dir -d --task --instance' -- $cur) )
;;
*)
COMPREPLY=( $(compgen -f $cur) )
Expand All @@ -177,7 +177,7 @@ _UseCrab ()
"uplog")
case "$cur" in
-*)
COMPREPLY=( $(compgen -W '--help -h --logpath --proxy --dir -d --instance' -- $cur) )
COMPREPLY=( $(compgen -W '--help -h --logpath --proxy --dir -d --task --instance' -- $cur) )
;;
*)
COMPREPLY=( $(compgen -f $cur) )
Expand All @@ -187,7 +187,7 @@ _UseCrab ()
"log")
case "$cur" in
-*)
COMPREPLY=( $(compgen -W '--help -h --short --dump --xrootd --quantity --parallel --wait --outputpath --jobids --checksum --command --proxy --dir -d ' -- $cur) )
COMPREPLY=( $(compgen -W '--help -h --short --dump --xrootd --quantity --parallel --wait --outputpath --jobids --checksum --command --proxy --dir -d --task --instance' -- $cur) )
;;
*)
COMPREPLY=( $(compgen -f $cur) )
Expand All @@ -197,7 +197,7 @@ _UseCrab ()
"uploadlog")
case "$cur" in
-*)
COMPREPLY=( $(compgen -W '--help -h --logpath --proxy --dir -d --instance' -- $cur) )
COMPREPLY=( $(compgen -W '--help -h --logpath --proxy --dir -d --task --instance' -- $cur) )
;;
*)
COMPREPLY=( $(compgen -f $cur) )
Expand All @@ -207,7 +207,7 @@ _UseCrab ()
"report")
case "$cur" in
-*)
COMPREPLY=( $(compgen -W '--help -h --outputdir --recovery --dbs --proxy --dir -d ' -- $cur) )
COMPREPLY=( $(compgen -W '--help -h --outputdir --recovery --dbs --proxy --dir -d --task --instance' -- $cur) )
;;
*)
COMPREPLY=( $(compgen -f $cur) )
Expand All @@ -217,7 +217,7 @@ _UseCrab ()
"proceed")
case "$cur" in
-*)
COMPREPLY=( $(compgen -W '--help -h --proxy --dir -d ' -- $cur) )
COMPREPLY=( $(compgen -W '--help -h --proxy --dir -d --task --instance' -- $cur) )
;;
*)
COMPREPLY=( $(compgen -f $cur) )
Expand All @@ -227,7 +227,7 @@ _UseCrab ()
"st")
case "$cur" in
-*)
COMPREPLY=( $(compgen -W '--help -h --long --json --summary --verboseErrors --sort --jobids --proxy --dir -d ' -- $cur) )
COMPREPLY=( $(compgen -W '--help -h --long --json --summary --verboseErrors --sort --jobids --proxy --dir -d --task --instance' -- $cur) )
;;
*)
COMPREPLY=( $(compgen -f $cur) )
Expand All @@ -247,7 +247,7 @@ _UseCrab ()
"output")
case "$cur" in
-*)
COMPREPLY=( $(compgen -W '--help -h --dump --xrootd --quantity --parallel --wait --outputpath --jobids --checksum --command --proxy --dir -d ' -- $cur) )
COMPREPLY=( $(compgen -W '--help -h --dump --xrootd --quantity --parallel --wait --outputpath --jobids --checksum --command --proxy --dir -d --task --instance' -- $cur) )
;;
*)
COMPREPLY=( $(compgen -f $cur) )
Expand All @@ -257,7 +257,7 @@ _UseCrab ()
"preparelocal")
case "$cur" in
-*)
COMPREPLY=( $(compgen -W '--help -h --jobid --enableStageout --destdir --proxy --dir -d ' -- $cur) )
COMPREPLY=( $(compgen -W '--help -h --jobid --enableStageout --destdir --proxy --dir -d --task --instance' -- $cur) )
;;
*)
COMPREPLY=( $(compgen -f $cur) )
Expand Down

0 comments on commit c91e6bd

Please sign in to comment.