From 8645836f09bd7d1060f124a18bab534ee4970dc0 Mon Sep 17 00:00:00 2001 From: James Rowe Date: Wed, 6 Nov 2019 06:52:26 +0000 Subject: Add zsh completion support This adds completion support for all the current commands, including completion for sink and source names where they are used. --- examples/zsh-completion/_dtas-archive | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 examples/zsh-completion/_dtas-archive (limited to 'examples/zsh-completion/_dtas-archive') diff --git a/examples/zsh-completion/_dtas-archive b/examples/zsh-completion/_dtas-archive new file mode 100644 index 0000000..2bfdf7e --- /dev/null +++ b/examples/zsh-completion/_dtas-archive @@ -0,0 +1,16 @@ +#compdef dtas-archive + +# To the extent possible under law, James Rowe has waived all copyright and +# related or neighboring rights to this example. + +_arguments -S \ + "--type=[file type]" \ + "--compression=[compression factor for sox]:select compression:({0..8})" \ + "--jobs=[number of jobs]: :_guard '[0-9]#' value" \ + "--stats[save stats on the file]" \ + "--keep-going[continue after error]" \ + "--dry-run[only print commands, do not run them]" \ + "--repeat=[number of times to check]: :_guard '[0-9]#' value" \ + "--help[display help message]" \ + ":select source:_files" \ + ":select destination:_files" -- cgit v1.2.3-24-ge0c7