From 5ff8f3bd9c587a78da068cb2f83f69b3c9f00938 Mon Sep 17 00:00:00 2001 From: Naba7 Date: Wed, 26 Jun 2019 17:25:58 +0530 Subject: [PATCH 01/14] updated bash autocomplete script --- scripts/completion/dvc.bash | 45 +++++++++++++++++++++++++++---------- 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/scripts/completion/dvc.bash b/scripts/completion/dvc.bash index adc389e0f..7fe55b166 100644 --- a/scripts/completion/dvc.bash +++ b/scripts/completion/dvc.bash @@ -10,33 +10,54 @@ _dvc_commands='init destroy add import checkout run pull push fetch \ status repro remove move unprotect gc config remote metrics \ - install root lock unlock pipeline commit' + install root lock unlock pipeline commit cache cache_dir diff \ + config index metrics_add metrics_modify metrics_remove move \ + metrics_show pipeline_list pipeline_show remote_add version \ + remote_list remote_default' _dvc_options="-h --help -v --version" _dvc_global_options="-h --help -q --quiet -V --verbose" -_dvc_add="-R --recursive -f --file --no-commit" -_dvc_checkout="$(compgen -G '*.dvc')" +_dvc_add="-R --recursive -f --file --no-commit $(compgen -G '*')" +_dvc_cache="" +_dvc_cache_dir="--global --system --local -u --unset" +_dvc_checkout="-d --with-deps -R --recursive -f --force $(compgen -G '*.dvc')" +_dvc_commit="-d --with-deps -R --recursive -f --force $(compgen -G '*.dvc')" _dvc_config="-u --unset --local --system --global" _dvc_destroy="-f --force" -_dvc_fetch="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive" -_dvc_gc="-a --all-branches -T --all-tags -c --cloud -r --remote -f --force -p --project" -_dvc_import="--resume" +_dvc_diff="-t --target" +_dvc_fetch="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive $(compgen -G '*.dvc')" +_dvc_gc="-a --all-branches -T --all-tags -c --cloud -r --remote -f --force -p --projects -j --jobs" +_dvc_import="--resume -f --file" +_dvc_index="" _dvc_init="--no-scm -f --force" _dvc_install="" _dvc_lock="$(compgen -G '*.dvc')" +_dvc_metrics_add="-t --type -x --xpath $(compgen -G '*')" _dvc_metrics="" +_dvc_metrics_modify="-t --type -x --xpath $(compgen -G '*')" +_dvc_metrics_remove="$(compgen -G '*')" +_dvc_metrics_show="-t --type -x --xpath -a --all-branches -T --all-tags -R --recursive $(compgen -G '*')" _dvc_move="$(compgen -G '*')" +_dvc_pipeline_list="" _dvc_pipeline="" -_dvc_pull="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -f --force -R --recursive" -_dvc_push="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive" +_dvc_pipeline_show="-c --commands -o --outs --ascii --dot --tree -l --locked $(compgen -G '*.dvc')" +_dvc_pull="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -f --force -R --recursive $(compgen -G '*.dvc')" +_dvc_push="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive $(compgen -G '*.dvc')" +_dvc_remote_add="--global --system --local -d -default -f --force" +_dvc_remote_default="--global --system --local -u --unset" +_dvc_remote_list="--global --system --local" _dvc_remote="" -_dvc_remove="--dry -o --outs -p --purge --force" -_dvc_repro="--dry -f --force -s --single-item -c --cwd -m --metrics -i --interactive -p --pipeline -P --all-pipelines --ignore-build-cache --no-commit -s --single-item" +_dvc_remote_modify="--global --system --local -u --unset" +_dvc_remote_remove="--global --system --local" +_dvc_remove="-o --outs -p --purge -f --force $(compgen -G '*.dvc')" +_dvc_repro="--dry -f --force -s --single-item -c --cwd -m --metrics -i --interactive -p --pipeline --ignore-build-cache --no-commit -s --single-item --downstream" _dvc_root="" -_dvc_run="--no-exec -f --file -c --cwd -d --deps -o --outs -O --outs-no-cache -M --metrics-no-cache -y --yes --overwrite-dvc-file --ignore-build-cache --remove-outs --no-commit -w --wdir" -_dvc_status="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -c --cloud -q --quiet" +_dvc_run="--no-exec -f --file -c --cwd -d --deps -o --outs -O --outs-no-cache -m metrics -M --metrics-no-cache -y --yes --overwrite-dvc-file --ignore-build-cache --remove-outs --no-commit -w --wdir" +_dvc_status="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -c --cloud $(compgen -G '*.dvc')" _dvc_unlock="$(compgen -G '*.dvc')" +_dvc_unprotect="$(compgen -G '*.dvc')" +_dvc_version="" # Notes: # From 68594bf08517084bf89adb0adecaeb0cdeec079d Mon Sep 17 00:00:00 2001 From: Naba7 Date: Thu, 27 Jun 2019 17:01:29 +0530 Subject: [PATCH 02/14] Updated bash --- scripts/completion/dvc.bash | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/completion/dvc.bash b/scripts/completion/dvc.bash index 7fe55b166..0ce7e3923 100644 --- a/scripts/completion/dvc.bash +++ b/scripts/completion/dvc.bash @@ -11,12 +11,12 @@ _dvc_commands='init destroy add import checkout run pull push fetch \ status repro remove move unprotect gc config remote metrics \ install root lock unlock pipeline commit cache cache_dir diff \ - config index metrics_add metrics_modify metrics_remove move \ + config metrics_add metrics_modify metrics_remove move \ metrics_show pipeline_list pipeline_show remote_add version \ remote_list remote_default' _dvc_options="-h --help -v --version" -_dvc_global_options="-h --help -q --quiet -V --verbose" +_dvc_global_options="-h --help -q --quiet -v --verbose" _dvc_add="-R --recursive -f --file --no-commit $(compgen -G '*')" _dvc_cache="" @@ -29,7 +29,6 @@ _dvc_diff="-t --target" _dvc_fetch="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive $(compgen -G '*.dvc')" _dvc_gc="-a --all-branches -T --all-tags -c --cloud -r --remote -f --force -p --projects -j --jobs" _dvc_import="--resume -f --file" -_dvc_index="" _dvc_init="--no-scm -f --force" _dvc_install="" _dvc_lock="$(compgen -G '*.dvc')" @@ -53,7 +52,7 @@ _dvc_remote_remove="--global --system --local" _dvc_remove="-o --outs -p --purge -f --force $(compgen -G '*.dvc')" _dvc_repro="--dry -f --force -s --single-item -c --cwd -m --metrics -i --interactive -p --pipeline --ignore-build-cache --no-commit -s --single-item --downstream" _dvc_root="" -_dvc_run="--no-exec -f --file -c --cwd -d --deps -o --outs -O --outs-no-cache -m metrics -M --metrics-no-cache -y --yes --overwrite-dvc-file --ignore-build-cache --remove-outs --no-commit -w --wdir" +_dvc_run="--no-exec -f --file -c --cwd -d --deps -o --outs -O --outs-no-cache -m metrics -M --metrics-no-cache -y --yes --overwrite-dvcfile --ignore-build-cache --remove-outs --no-commit -w --wdir" _dvc_status="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -c --cloud $(compgen -G '*.dvc')" _dvc_unlock="$(compgen -G '*.dvc')" _dvc_unprotect="$(compgen -G '*.dvc')" From 18711ecfd813f97c898d99e9e1d0afb8c67fc9d0 Mon Sep 17 00:00:00 2001 From: Naba7 Date: Thu, 27 Jun 2019 18:09:40 +0530 Subject: [PATCH 03/14] more changes to be made --- scripts/completion/dvc.bash | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/completion/dvc.bash b/scripts/completion/dvc.bash index 0ce7e3923..bccad2339 100644 --- a/scripts/completion/dvc.bash +++ b/scripts/completion/dvc.bash @@ -8,12 +8,10 @@ # - https://opensource.com/article/18/3/creating-bash-completion-script #---------------------------------------------------------- -_dvc_commands='init destroy add import checkout run pull push fetch \ - status repro remove move unprotect gc config remote metrics \ - install root lock unlock pipeline commit cache cache_dir diff \ - config metrics_add metrics_modify metrics_remove move \ - metrics_show pipeline_list pipeline_show remote_add version \ - remote_list remote_default' +_dvc_commands='add base cache checkout commit config daemon data_sync diff \ + destroy gc get get_url imp imp_url __init__ init install lock \ + metrics move pipeline remote remove repro root run status tag \ + unprotect version' _dvc_options="-h --help -v --version" _dvc_global_options="-h --help -q --quiet -v --verbose" From 91849767eeb2edae8a696bdfc6d9fd582521bbc0 Mon Sep 17 00:00:00 2001 From: Naba7 Date: Thu, 27 Jun 2019 19:36:19 +0530 Subject: [PATCH 04/14] Updated dvc and bash --- .dvc/.gitignore | 1 + scripts/completion/dvc.bash | 32 ++++++++++++-------------------- 2 files changed, 13 insertions(+), 20 deletions(-) diff --git a/.dvc/.gitignore b/.dvc/.gitignore index 775b312bc..6e6f01414 100644 --- a/.dvc/.gitignore +++ b/.dvc/.gitignore @@ -7,3 +7,4 @@ /state-wal /cache /pkg +/repos diff --git a/scripts/completion/dvc.bash b/scripts/completion/dvc.bash index bccad2339..a804d0855 100644 --- a/scripts/completion/dvc.bash +++ b/scripts/completion/dvc.bash @@ -8,49 +8,41 @@ # - https://opensource.com/article/18/3/creating-bash-completion-script #---------------------------------------------------------- -_dvc_commands='add base cache checkout commit config daemon data_sync diff \ - destroy gc get get_url imp imp_url __init__ init install lock \ - metrics move pipeline remote remove repro root run status tag \ - unprotect version' +_dvc_commands='init get get_url destroy add remove move unprotect run \ + repro pull push fetch status gc import import_url config \ + checkout remote cache metrics install root lock unlock \ + pipeline daemon commit diff version' _dvc_options="-h --help -v --version" _dvc_global_options="-h --help -q --quiet -v --verbose" _dvc_add="-R --recursive -f --file --no-commit $(compgen -G '*')" _dvc_cache="" -_dvc_cache_dir="--global --system --local -u --unset" _dvc_checkout="-d --with-deps -R --recursive -f --force $(compgen -G '*.dvc')" _dvc_commit="-d --with-deps -R --recursive -f --force $(compgen -G '*.dvc')" _dvc_config="-u --unset --local --system --global" +_dvc_daemon="" _dvc_destroy="-f --force" _dvc_diff="-t --target" _dvc_fetch="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive $(compgen -G '*.dvc')" _dvc_gc="-a --all-branches -T --all-tags -c --cloud -r --remote -f --force -p --projects -j --jobs" -_dvc_import="--resume -f --file" +_dvc_get="-o --out --rev" +_dvc_get_url="" +_dvc_import="-o --out --rev" +_dvc_import_url="--resume -f --file" _dvc_init="--no-scm -f --force" _dvc_install="" _dvc_lock="$(compgen -G '*.dvc')" -_dvc_metrics_add="-t --type -x --xpath $(compgen -G '*')" _dvc_metrics="" -_dvc_metrics_modify="-t --type -x --xpath $(compgen -G '*')" -_dvc_metrics_remove="$(compgen -G '*')" -_dvc_metrics_show="-t --type -x --xpath -a --all-branches -T --all-tags -R --recursive $(compgen -G '*')" _dvc_move="$(compgen -G '*')" -_dvc_pipeline_list="" _dvc_pipeline="" -_dvc_pipeline_show="-c --commands -o --outs --ascii --dot --tree -l --locked $(compgen -G '*.dvc')" -_dvc_pull="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -f --force -R --recursive $(compgen -G '*.dvc')" +_dvc_pull="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -f --force -d --with-deps -R --recursive $(compgen -G '*.dvc')" _dvc_push="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive $(compgen -G '*.dvc')" -_dvc_remote_add="--global --system --local -d -default -f --force" -_dvc_remote_default="--global --system --local -u --unset" -_dvc_remote_list="--global --system --local" _dvc_remote="" -_dvc_remote_modify="--global --system --local -u --unset" -_dvc_remote_remove="--global --system --local" _dvc_remove="-o --outs -p --purge -f --force $(compgen -G '*.dvc')" -_dvc_repro="--dry -f --force -s --single-item -c --cwd -m --metrics -i --interactive -p --pipeline --ignore-build-cache --no-commit -s --single-item --downstream" +_dvc_repro="-f --force -s --single-item -c --cwd -m --metrics --dry -i --interactive -p --pipeline -P --all-pipelines --ignore-build-cache --no-commit -R --recursive --downstream" _dvc_root="" -_dvc_run="--no-exec -f --file -c --cwd -d --deps -o --outs -O --outs-no-cache -m metrics -M --metrics-no-cache -y --yes --overwrite-dvcfile --ignore-build-cache --remove-outs --no-commit -w --wdir" +_dvc_run="--no-exec -f --file -c --cwd -d --deps -o --outs -O --outs-no-cache --outs-persist --outs-persist-no-cache -m --metrics -M --metrics-no-cache -y --yes --overwrite-dvcfile --ignore-build-cache --remove-outs --no-commit -w --wdir" _dvc_status="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -c --cloud $(compgen -G '*.dvc')" _dvc_unlock="$(compgen -G '*.dvc')" _dvc_unprotect="$(compgen -G '*.dvc')" From b5eb4c479b11e735947bdc75645ba509c2ee59f3 Mon Sep 17 00:00:00 2001 From: Naba7 Date: Thu, 27 Jun 2019 19:50:17 +0530 Subject: [PATCH 05/14] -V for version --- scripts/completion/dvc.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/completion/dvc.bash b/scripts/completion/dvc.bash index a804d0855..7f6c38017 100644 --- a/scripts/completion/dvc.bash +++ b/scripts/completion/dvc.bash @@ -13,7 +13,7 @@ _dvc_commands='init get get_url destroy add remove move unprotect run \ checkout remote cache metrics install root lock unlock \ pipeline daemon commit diff version' -_dvc_options="-h --help -v --version" +_dvc_options="-h --help -V --version" _dvc_global_options="-h --help -q --quiet -v --verbose" _dvc_add="-R --recursive -f --file --no-commit $(compgen -G '*')" From 55d15edb2b74037bb1c3d83642cca3ddf194780f Mon Sep 17 00:00:00 2001 From: Naba7 Date: Fri, 28 Jun 2019 09:27:41 +0530 Subject: [PATCH 06/14] change --- scripts/completion/dvc.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/completion/dvc.bash b/scripts/completion/dvc.bash index 7f6c38017..ba53a1757 100644 --- a/scripts/completion/dvc.bash +++ b/scripts/completion/dvc.bash @@ -27,9 +27,9 @@ _dvc_diff="-t --target" _dvc_fetch="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive $(compgen -G '*.dvc')" _dvc_gc="-a --all-branches -T --all-tags -c --cloud -r --remote -f --force -p --projects -j --jobs" _dvc_get="-o --out --rev" -_dvc_get_url="" +_dvc_get-url="" _dvc_import="-o --out --rev" -_dvc_import_url="--resume -f --file" +_dvc_import-url="--resume -f --file" _dvc_init="--no-scm -f --force" _dvc_install="" _dvc_lock="$(compgen -G '*.dvc')" From b6b77dd8aeb9165660bc1861203edb3fe81c7eab Mon Sep 17 00:00:00 2001 From: Naba7 Date: Fri, 28 Jun 2019 17:56:22 +0530 Subject: [PATCH 07/14] removed daemon --- scripts/completion/dvc.bash | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/completion/dvc.bash b/scripts/completion/dvc.bash index ba53a1757..8fe63ac47 100644 --- a/scripts/completion/dvc.bash +++ b/scripts/completion/dvc.bash @@ -11,7 +11,7 @@ _dvc_commands='init get get_url destroy add remove move unprotect run \ repro pull push fetch status gc import import_url config \ checkout remote cache metrics install root lock unlock \ - pipeline daemon commit diff version' + pipeline commit diff version' _dvc_options="-h --help -V --version" _dvc_global_options="-h --help -q --quiet -v --verbose" @@ -21,7 +21,6 @@ _dvc_cache="" _dvc_checkout="-d --with-deps -R --recursive -f --force $(compgen -G '*.dvc')" _dvc_commit="-d --with-deps -R --recursive -f --force $(compgen -G '*.dvc')" _dvc_config="-u --unset --local --system --global" -_dvc_daemon="" _dvc_destroy="-f --force" _dvc_diff="-t --target" _dvc_fetch="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive $(compgen -G '*.dvc')" From 829c800db00a03e2fb8efad503d850606a7a6e30 Mon Sep 17 00:00:00 2001 From: Naba7 Date: Sat, 29 Jun 2019 01:55:32 +0530 Subject: [PATCH 08/14] change --- scripts/completion/dvc.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/completion/dvc.bash b/scripts/completion/dvc.bash index 8fe63ac47..d0489424f 100644 --- a/scripts/completion/dvc.bash +++ b/scripts/completion/dvc.bash @@ -9,7 +9,7 @@ #---------------------------------------------------------- _dvc_commands='init get get_url destroy add remove move unprotect run \ - repro pull push fetch status gc import import_url config \ + repro pull push fetch status gc import import-url config \ checkout remote cache metrics install root lock unlock \ pipeline commit diff version' @@ -26,9 +26,9 @@ _dvc_diff="-t --target" _dvc_fetch="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive $(compgen -G '*.dvc')" _dvc_gc="-a --all-branches -T --all-tags -c --cloud -r --remote -f --force -p --projects -j --jobs" _dvc_get="-o --out --rev" -_dvc_get-url="" +_dvc_get_url="" _dvc_import="-o --out --rev" -_dvc_import-url="--resume -f --file" +_dvc_import_url="--resume -f --file" _dvc_init="--no-scm -f --force" _dvc_install="" _dvc_lock="$(compgen -G '*.dvc')" From b835bbe275d2402a37701fb233a94101e58b44a7 Mon Sep 17 00:00:00 2001 From: Naba7 Date: Sat, 29 Jun 2019 02:00:54 +0530 Subject: [PATCH 09/14] Revert "change" This reverts commit 829c800db00a03e2fb8efad503d850606a7a6e30. revert --- scripts/completion/dvc.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/completion/dvc.bash b/scripts/completion/dvc.bash index d0489424f..8fe63ac47 100644 --- a/scripts/completion/dvc.bash +++ b/scripts/completion/dvc.bash @@ -9,7 +9,7 @@ #---------------------------------------------------------- _dvc_commands='init get get_url destroy add remove move unprotect run \ - repro pull push fetch status gc import import-url config \ + repro pull push fetch status gc import import_url config \ checkout remote cache metrics install root lock unlock \ pipeline commit diff version' @@ -26,9 +26,9 @@ _dvc_diff="-t --target" _dvc_fetch="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive $(compgen -G '*.dvc')" _dvc_gc="-a --all-branches -T --all-tags -c --cloud -r --remote -f --force -p --projects -j --jobs" _dvc_get="-o --out --rev" -_dvc_get_url="" +_dvc_get-url="" _dvc_import="-o --out --rev" -_dvc_import_url="--resume -f --file" +_dvc_import-url="--resume -f --file" _dvc_init="--no-scm -f --force" _dvc_install="" _dvc_lock="$(compgen -G '*.dvc')" From 0f540b8616605f6e4e5268a8222f1c299e1e5fc0 Mon Sep 17 00:00:00 2001 From: Naba7 Date: Sat, 29 Jun 2019 02:04:12 +0530 Subject: [PATCH 10/14] Revert "Revert "change"" This reverts commit b835bbe275d2402a37701fb233a94101e58b44a7. change --- scripts/completion/dvc.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/completion/dvc.bash b/scripts/completion/dvc.bash index 8fe63ac47..d0489424f 100644 --- a/scripts/completion/dvc.bash +++ b/scripts/completion/dvc.bash @@ -9,7 +9,7 @@ #---------------------------------------------------------- _dvc_commands='init get get_url destroy add remove move unprotect run \ - repro pull push fetch status gc import import_url config \ + repro pull push fetch status gc import import-url config \ checkout remote cache metrics install root lock unlock \ pipeline commit diff version' @@ -26,9 +26,9 @@ _dvc_diff="-t --target" _dvc_fetch="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive $(compgen -G '*.dvc')" _dvc_gc="-a --all-branches -T --all-tags -c --cloud -r --remote -f --force -p --projects -j --jobs" _dvc_get="-o --out --rev" -_dvc_get-url="" +_dvc_get_url="" _dvc_import="-o --out --rev" -_dvc_import-url="--resume -f --file" +_dvc_import_url="--resume -f --file" _dvc_init="--no-scm -f --force" _dvc_install="" _dvc_lock="$(compgen -G '*.dvc')" From 40617fa100f66aba3300c9ffaf6f660bf4109daf Mon Sep 17 00:00:00 2001 From: Naba7 Date: Sat, 29 Jun 2019 02:07:14 +0530 Subject: [PATCH 11/14] Revert "Revert "Revert "change""" This reverts commit 0f540b8616605f6e4e5268a8222f1c299e1e5fc0. c --- scripts/completion/dvc.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/completion/dvc.bash b/scripts/completion/dvc.bash index d0489424f..8fe63ac47 100644 --- a/scripts/completion/dvc.bash +++ b/scripts/completion/dvc.bash @@ -9,7 +9,7 @@ #---------------------------------------------------------- _dvc_commands='init get get_url destroy add remove move unprotect run \ - repro pull push fetch status gc import import-url config \ + repro pull push fetch status gc import import_url config \ checkout remote cache metrics install root lock unlock \ pipeline commit diff version' @@ -26,9 +26,9 @@ _dvc_diff="-t --target" _dvc_fetch="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive $(compgen -G '*.dvc')" _dvc_gc="-a --all-branches -T --all-tags -c --cloud -r --remote -f --force -p --projects -j --jobs" _dvc_get="-o --out --rev" -_dvc_get_url="" +_dvc_get-url="" _dvc_import="-o --out --rev" -_dvc_import_url="--resume -f --file" +_dvc_import-url="--resume -f --file" _dvc_init="--no-scm -f --force" _dvc_install="" _dvc_lock="$(compgen -G '*.dvc')" From 47398c080764db617723ec8aa9ef0fa3af19d930 Mon Sep 17 00:00:00 2001 From: Naba7 Date: Sat, 29 Jun 2019 10:30:34 +0530 Subject: [PATCH 12/14] Resolved conflicts --- scripts/completion/dvc.bash | 56 ++++++------------------------------- 1 file changed, 9 insertions(+), 47 deletions(-) diff --git a/scripts/completion/dvc.bash b/scripts/completion/dvc.bash index 7f932edef..9e392fc3a 100644 --- a/scripts/completion/dvc.bash +++ b/scripts/completion/dvc.bash @@ -8,59 +8,26 @@ # - https://opensource.com/article/18/3/creating-bash-completion-script #---------------------------------------------------------- -<<<<<<< HEAD -_dvc_commands='init get get_url destroy add remove move unprotect run \ - repro pull push fetch status gc import import_url config \ - checkout remote cache metrics install root lock unlock \ - pipeline commit diff version' -||||||| merged common ancestors -_dvc_commands='init destroy add import checkout run pull push fetch \ - status repro remove move unprotect gc config remote metrics \ - install root lock unlock pipeline commit' -======= -_dvc_commands='add checkout commit config destroy fetch get-url get gc \ +_dvc_commands='add cache checkout commit config destroy diff fetch get-url get gc \ import-url import init install lock metrics move pipeline pull push \ - remote remove repro root run status unlock unprotect' ->>>>>>> a0233ce4a9920cda18f4a10948f74820cd7bc624 + remote remove repro root run status unlock unprotect version' _dvc_options="-h --help -V --version" _dvc_global_options="-h --help -q --quiet -v --verbose" -<<<<<<< HEAD _dvc_add="-R --recursive -f --file --no-commit $(compgen -G '*')" _dvc_cache="" -_dvc_checkout="-d --with-deps -R --recursive -f --force $(compgen -G '*.dvc')" -_dvc_commit="-d --with-deps -R --recursive -f --force $(compgen -G '*.dvc')" -||||||| merged common ancestors -_dvc_add="-R --recursive -f --file --no-commit" -_dvc_checkout="$(compgen -G '*.dvc')" -======= -_dvc_add="-R --recursive -f --file --no-commit" -_dvc_checkout="$(compgen -G '*.dvc')" -_dvc_commit="" ->>>>>>> a0233ce4a9920cda18f4a10948f74820cd7bc624 +_dvc_checkout="-f --force -d --with-deps -R --recursive $(compgen -G '*.dvc')" +_dvc_commit="-f --force -d --with-deps -R --recursive $(compgen -G '*.dvc')" _dvc_config="-u --unset --local --system --global" _dvc_destroy="-f --force" -<<<<<<< HEAD _dvc_diff="-t --target" _dvc_fetch="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive $(compgen -G '*.dvc')" +_dvc_get_url="" +_dvc_get="-o --out --rev" _dvc_gc="-a --all-branches -T --all-tags -c --cloud -r --remote -f --force -p --projects -j --jobs" -_dvc_get="-o --out --rev" -_dvc_get-url="" +_dvc_import_url="--resume -f --file" _dvc_import="-o --out --rev" -_dvc_import-url="--resume -f --file" -||||||| merged common ancestors -_dvc_fetch="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive" -_dvc_gc="-a --all-branches -T --all-tags -c --cloud -r --remote -f --force -p --project" -_dvc_import="--resume" -======= -_dvc_fetch="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive" -_dvc_get-url="" -_dvc_get="-o --out --rev" -_dvc_gc="-a --all-branches -T --all-tags -c --cloud -r --remote -f --force -p --project" -_dvc_import-url="--resume -f --file" -_dvc_import="-o --out --rev" ->>>>>>> a0233ce4a9920cda18f4a10948f74820cd7bc624 _dvc_init="--no-scm -f --force" _dvc_install="" _dvc_lock="$(compgen -G '*.dvc')" @@ -71,18 +38,13 @@ _dvc_pull="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tag _dvc_push="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive $(compgen -G '*.dvc')" _dvc_remote="" _dvc_remove="-o --outs -p --purge -f --force $(compgen -G '*.dvc')" -_dvc_repro="-f --force -s --single-item -c --cwd -m --metrics --dry -i --interactive -p --pipeline -P --all-pipelines --ignore-build-cache --no-commit -R --recursive --downstream" +_dvc_repro="-f --force -s --single-item -c --cwd -m --metrics --dry -i --interactive -p --pipeline -P --all-pipelines --ignore-build-cache --no-commit -R --recursive --downstream $(compgen -G '*.dvc')" _dvc_root="" _dvc_run="--no-exec -f --file -c --cwd -d --deps -o --outs -O --outs-no-cache --outs-persist --outs-persist-no-cache -m --metrics -M --metrics-no-cache -y --yes --overwrite-dvcfile --ignore-build-cache --remove-outs --no-commit -w --wdir" _dvc_status="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -c --cloud $(compgen -G '*.dvc')" _dvc_unlock="$(compgen -G '*.dvc')" -<<<<<<< HEAD -_dvc_unprotect="$(compgen -G '*.dvc')" +_dvc_unprotect="$(compgen -G '*')" _dvc_version="" -||||||| merged common ancestors -======= -_dvc_unprotect="" ->>>>>>> a0233ce4a9920cda18f4a10948f74820cd7bc624 # Notes: # From bd407a61a14228e0c78b63e9a0a8f63e5febf468 Mon Sep 17 00:00:00 2001 From: Naba7 Date: Sat, 29 Jun 2019 14:32:05 +0530 Subject: [PATCH 13/14] changed " to ' --- scripts/completion/dvc.bash | 64 ++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/scripts/completion/dvc.bash b/scripts/completion/dvc.bash index 9e392fc3a..696aa3451 100644 --- a/scripts/completion/dvc.bash +++ b/scripts/completion/dvc.bash @@ -12,39 +12,39 @@ _dvc_commands='add cache checkout commit config destroy diff fetch get-url get g import-url import init install lock metrics move pipeline pull push \ remote remove repro root run status unlock unprotect version' -_dvc_options="-h --help -V --version" -_dvc_global_options="-h --help -q --quiet -v --verbose" +_dvc_options='-h --help -V --version' +_dvc_global_options='-h --help -q --quiet -v --verbose' -_dvc_add="-R --recursive -f --file --no-commit $(compgen -G '*')" -_dvc_cache="" -_dvc_checkout="-f --force -d --with-deps -R --recursive $(compgen -G '*.dvc')" -_dvc_commit="-f --force -d --with-deps -R --recursive $(compgen -G '*.dvc')" -_dvc_config="-u --unset --local --system --global" -_dvc_destroy="-f --force" -_dvc_diff="-t --target" -_dvc_fetch="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive $(compgen -G '*.dvc')" -_dvc_get_url="" -_dvc_get="-o --out --rev" -_dvc_gc="-a --all-branches -T --all-tags -c --cloud -r --remote -f --force -p --projects -j --jobs" -_dvc_import_url="--resume -f --file" -_dvc_import="-o --out --rev" -_dvc_init="--no-scm -f --force" -_dvc_install="" -_dvc_lock="$(compgen -G '*.dvc')" -_dvc_metrics="" -_dvc_move="$(compgen -G '*')" -_dvc_pipeline="" -_dvc_pull="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -f --force -d --with-deps -R --recursive $(compgen -G '*.dvc')" -_dvc_push="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive $(compgen -G '*.dvc')" -_dvc_remote="" -_dvc_remove="-o --outs -p --purge -f --force $(compgen -G '*.dvc')" -_dvc_repro="-f --force -s --single-item -c --cwd -m --metrics --dry -i --interactive -p --pipeline -P --all-pipelines --ignore-build-cache --no-commit -R --recursive --downstream $(compgen -G '*.dvc')" -_dvc_root="" -_dvc_run="--no-exec -f --file -c --cwd -d --deps -o --outs -O --outs-no-cache --outs-persist --outs-persist-no-cache -m --metrics -M --metrics-no-cache -y --yes --overwrite-dvcfile --ignore-build-cache --remove-outs --no-commit -w --wdir" -_dvc_status="--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -c --cloud $(compgen -G '*.dvc')" -_dvc_unlock="$(compgen -G '*.dvc')" -_dvc_unprotect="$(compgen -G '*')" -_dvc_version="" +_dvc_add='-R --recursive -f --file --no-commit $(compgen -G '*')' +_dvc_cache='' +_dvc_checkout='-f --force -d --with-deps -R --recursive $(compgen -G '*.dvc')' +_dvc_commit='-f --force -d --with-deps -R --recursive $(compgen -G '*.dvc')' +_dvc_config='-u --unset --local --system --global' +_dvc_destroy='-f --force' +_dvc_diff='-t --target' +_dvc_fetch='--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive $(compgen -G '*.dvc')' +_dvc_get_url='' +_dvc_get='-o --out --rev' +_dvc_gc='-a --all-branches -T --all-tags -c --cloud -r --remote -f --force -p --projects -j --jobs' +_dvc_import_url='--resume -f --file' +_dvc_import='-o --out --rev' +_dvc_init='--no-scm -f --force' +_dvc_install='' +_dvc_lock='$(compgen -G '*.dvc')' +_dvc_metrics='' +_dvc_move='$(compgen -G '*')' +_dvc_pipeline='' +_dvc_pull='--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -f --force -d --with-deps -R --recursive $(compgen -G '*.dvc')' +_dvc_push='--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive $(compgen -G '*.dvc')' +_dvc_remote='' +_dvc_remove='-o --outs -p --purge -f --force $(compgen -G '*.dvc')' +_dvc_repro='-f --force -s --single-item -c --cwd -m --metrics --dry -i --interactive -p --pipeline -P --all-pipelines --ignore-build-cache --no-commit -R --recursive --downstream $(compgen -G '*.dvc')' +_dvc_root='' +_dvc_run='--no-exec -f --file -c --cwd -d --deps -o --outs -O --outs-no-cache --outs-persist --outs-persist-no-cache -m --metrics -M --metrics-no-cache -y --yes --overwrite-dvcfile --ignore-build-cache --remove-outs --no-commit -w --wdir' +_dvc_status='--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -c --cloud $(compgen -G '*.dvc')' +_dvc_unlock='$(compgen -G '*.dvc')' +_dvc_unprotect='$(compgen -G '*')' +_dvc_version='' # Notes: # From 8adc313a5d19c8c5c5e5c654ef8c138ae4a2c4c0 Mon Sep 17 00:00:00 2001 From: Naba7 Date: Sat, 29 Jun 2019 14:37:38 +0530 Subject: [PATCH 14/14] change --- scripts/completion/dvc.bash | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/scripts/completion/dvc.bash b/scripts/completion/dvc.bash index 696aa3451..7457371b5 100644 --- a/scripts/completion/dvc.bash +++ b/scripts/completion/dvc.bash @@ -15,14 +15,14 @@ _dvc_commands='add cache checkout commit config destroy diff fetch get-url get g _dvc_options='-h --help -V --version' _dvc_global_options='-h --help -q --quiet -v --verbose' -_dvc_add='-R --recursive -f --file --no-commit $(compgen -G '*')' +_dvc_add='-R --recursive -f --file --no-commit $(compgen -G *)' _dvc_cache='' -_dvc_checkout='-f --force -d --with-deps -R --recursive $(compgen -G '*.dvc')' -_dvc_commit='-f --force -d --with-deps -R --recursive $(compgen -G '*.dvc')' +_dvc_checkout='-f --force -d --with-deps -R --recursive $(compgen -G *.dvc)' +_dvc_commit='-f --force -d --with-deps -R --recursive $(compgen -G *.dvc)' _dvc_config='-u --unset --local --system --global' _dvc_destroy='-f --force' _dvc_diff='-t --target' -_dvc_fetch='--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive $(compgen -G '*.dvc')' +_dvc_fetch='--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive $(compgen -G *.dvc)' _dvc_get_url='' _dvc_get='-o --out --rev' _dvc_gc='-a --all-branches -T --all-tags -c --cloud -r --remote -f --force -p --projects -j --jobs' @@ -30,20 +30,20 @@ _dvc_import_url='--resume -f --file' _dvc_import='-o --out --rev' _dvc_init='--no-scm -f --force' _dvc_install='' -_dvc_lock='$(compgen -G '*.dvc')' +_dvc_lock='$(compgen -G *.dvc)' _dvc_metrics='' -_dvc_move='$(compgen -G '*')' +_dvc_move='$(compgen -G *)' _dvc_pipeline='' -_dvc_pull='--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -f --force -d --with-deps -R --recursive $(compgen -G '*.dvc')' -_dvc_push='--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive $(compgen -G '*.dvc')' +_dvc_pull='--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -f --force -d --with-deps -R --recursive $(compgen -G *.dvc)' +_dvc_push='--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -R --recursive $(compgen -G *.dvc)' _dvc_remote='' -_dvc_remove='-o --outs -p --purge -f --force $(compgen -G '*.dvc')' -_dvc_repro='-f --force -s --single-item -c --cwd -m --metrics --dry -i --interactive -p --pipeline -P --all-pipelines --ignore-build-cache --no-commit -R --recursive --downstream $(compgen -G '*.dvc')' +_dvc_remove='-o --outs -p --purge -f --force $(compgen -G *.dvc)' +_dvc_repro='-f --force -s --single-item -c --cwd -m --metrics --dry -i --interactive -p --pipeline -P --all-pipelines --ignore-build-cache --no-commit -R --recursive --downstream $(compgen -G *.dvc)' _dvc_root='' _dvc_run='--no-exec -f --file -c --cwd -d --deps -o --outs -O --outs-no-cache --outs-persist --outs-persist-no-cache -m --metrics -M --metrics-no-cache -y --yes --overwrite-dvcfile --ignore-build-cache --remove-outs --no-commit -w --wdir' -_dvc_status='--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -c --cloud $(compgen -G '*.dvc')' -_dvc_unlock='$(compgen -G '*.dvc')' -_dvc_unprotect='$(compgen -G '*')' +_dvc_status='--show-checksums -j --jobs -r --remote -a --all-branches -T --all-tags -d --with-deps -c --cloud $(compgen -G *.dvc)' +_dvc_unlock='$(compgen -G *.dvc)' +_dvc_unprotect='$(compgen -G *)' _dvc_version='' # Notes: