From fdfca5c70b65bc13719d34907e714a9f5dae0bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Redzy=C5=84ski?= Date: Mon, 4 May 2020 13:02:36 +0200 Subject: [PATCH] plot: completion for zsh --- scripts/completion/dvc.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/completion/dvc.zsh b/scripts/completion/dvc.zsh index 3ed1a56eaa..8e6fbfbe5d 100644 --- a/scripts/completion/dvc.zsh +++ b/scripts/completion/dvc.zsh @@ -34,6 +34,7 @@ _dvc_commands() { "pipeline:Manage pipelines." "pull:Pull data files from a DVC remote storage." "push:Push data files to a DVC remote storage." + "plot:Generate plot for metrics structured as JSON, CSV or TSV." "remote:Manage remote storage configuration." "remove:Remove outputs of DVC-file." "repro:Check for changes and reproduce DVC-file and dependencies." @@ -206,6 +207,10 @@ _dvc_push=( "*:Stages:_files -g '(*.dvc|Dvcfile)'" ) +_dvc_plot=( + "1:Sub command:(show diff)" +) + _dvc_remote=( "1:Sub command:(add default remove modify list)" ) @@ -310,6 +315,7 @@ case $words[1] in pipeline) _arguments $_dvc_global_options $_dvc_pipeline ;; pull) _arguments $_dvc_global_options $_dvc_pull ;; push) _arguments $_dvc_global_options $_dvc_push ;; + plot) _arguments $_dvc_global_options $_dvc_plot ;; remote) _arguments $_dvc_global_options $_dvc_remote ;; remove) _arguments $_dvc_global_options $_dvc_remove ;; repro) _arguments $_dvc_global_options $_dvc_repro ;;