From 27ada0210dab39af0d32b094504404940256f9f5 Mon Sep 17 00:00:00 2001 From: "Mr. Outis" Date: Sun, 26 Jan 2020 22:51:29 -0600 Subject: [PATCH] scripts: update completion scripts for `diff` --- dvc/command/diff.py | 2 +- scripts/completion/dvc.bash | 2 +- scripts/completion/dvc.zsh | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dvc/command/diff.py b/dvc/command/diff.py index 8cb5d5c23..36e9e5198 100644 --- a/dvc/command/diff.py +++ b/dvc/command/diff.py @@ -142,7 +142,7 @@ def add_parser(subparsers, parent_parser): ) diff_parser.add_argument( "--checksums", - help=("Display checksums of each entry"), + help=("Display checksums for each entry"), action="store_true", default=False, ) diff --git a/scripts/completion/dvc.bash b/scripts/completion/dvc.bash index 2af965a67..128a64326 100644 --- a/scripts/completion/dvc.bash +++ b/scripts/completion/dvc.bash @@ -22,7 +22,7 @@ _dvc_checkout='-d --with-deps -R --recursive -f --force --relink $(compgen -G *. _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_diff='-t --target --json --checksums' _dvc_fetch='-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 --show-url' diff --git a/scripts/completion/dvc.zsh b/scripts/completion/dvc.zsh index 32bdef47f..be47469d5 100644 --- a/scripts/completion/dvc.zsh +++ b/scripts/completion/dvc.zsh @@ -98,6 +98,9 @@ _dvc_destroy=( _dvc_diff=( {-t,--target}"[Source path to a data file or directory.]:Target files:" + "--json[Format the output into a JSON]" + "--checksums[Display checksums for each entry]" + {1,2}":Git revision (e.g. branch, tag, SHA):" ) _dvc_fetch=(