Merge pull request #3026 from Suor/relink-autocompl

ui: add checkout --relink to autocomplete scripts
This commit is contained in:
Ruslan Kuprieiev
2020-01-01 17:34:46 +02:00
committed by GitHub
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ _dvc_global_options='-h --help -q --quiet -v --verbose'
_dvc_add='-R --recursive -f --file --no-commit $(compgen -G *)'
_dvc_cache='dir'
_dvc_cache_dir=' --global --system --local -u --unset'
_dvc_checkout='-f --force -d --with-deps -R --recursive $(compgen -G *.dvc)'
_dvc_checkout='-d --with-deps -R --recursive -f --force --relink $(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'
+2 -1
View File
@@ -72,8 +72,9 @@ _dvc_cache=(
_dvc_checkout=(
{-d,--with-deps}"[Checkout all dependencies of the specified target.]"
{-f,--force}"[Do not prompt when removing working directory files.]"
{-R,--recursive}"[Checkout all subdirectories of the specified directory.]"
{-f,--force}"[Do not prompt when removing working directory files.]"
{--relink}"[Recreate links or copies from cache to workspace.]"
"1:Stages:_files -g '(*.dvc|Dvcfile)'"
)