From 09fa063dc64686f12dc9b26123727c05be45a3ae Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Mon, 12 Nov 2018 21:37:26 +0100 Subject: [PATCH] Rebuild completions --- completions/_zola | 1 + completions/_zola.ps1 | 1 + completions/zola.bash | 2 +- completions/zola.fish | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/completions/_zola b/completions/_zola index f87d632..3258537 100644 --- a/completions/_zola +++ b/completions/_zola @@ -61,6 +61,7 @@ _arguments "${_arguments_options[@]}" \ '--output-dir=[Outputs the generated site in the given path]' \ '-u+[Changes the base_url]' \ '--base-url=[Changes the base_url]' \ +'--watch-only[Do not start a server, just re-build project on changes]' \ '-h[Prints help information]' \ '--help[Prints help information]' \ '-V[Prints version information]' \ diff --git a/completions/_zola.ps1 b/completions/_zola.ps1 index a5726a3..ff048c2 100644 --- a/completions/_zola.ps1 +++ b/completions/_zola.ps1 @@ -59,6 +59,7 @@ Register-ArgumentCompleter -Native -CommandName 'zola' -ScriptBlock { [CompletionResult]::new('--output-dir', 'output-dir', [CompletionResultType]::ParameterName, 'Outputs the generated site in the given path') [CompletionResult]::new('-u', 'u', [CompletionResultType]::ParameterName, 'Changes the base_url') [CompletionResult]::new('--base-url', 'base-url', [CompletionResultType]::ParameterName, 'Changes the base_url') + [CompletionResult]::new('--watch-only', 'watch-only', [CompletionResultType]::ParameterName, 'Do not start a server, just re-build project on changes') [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Prints help information') [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Prints help information') [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Prints version information') diff --git a/completions/zola.bash b/completions/zola.bash index 49e68c6..c92ce85 100644 --- a/completions/zola.bash +++ b/completions/zola.bash @@ -117,7 +117,7 @@ _zola() { return 0 ;; zola__serve) - opts=" -h -V -i -p -o -u --help --version --interface --port --output-dir --base-url " + opts=" -h -V -i -p -o -u --watch-only --help --version --interface --port --output-dir --base-url " if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 diff --git a/completions/zola.fish b/completions/zola.fish index dfd6b67..87be70d 100644 --- a/completions/zola.fish +++ b/completions/zola.fish @@ -15,6 +15,7 @@ complete -c zola -n "__fish_seen_subcommand_from serve" -s i -l interface -d 'In complete -c zola -n "__fish_seen_subcommand_from serve" -s p -l port -d 'Which port to use' complete -c zola -n "__fish_seen_subcommand_from serve" -s o -l output-dir -d 'Outputs the generated site in the given path' complete -c zola -n "__fish_seen_subcommand_from serve" -s u -l base-url -d 'Changes the base_url' +complete -c zola -n "__fish_seen_subcommand_from serve" -l watch-only -d 'Do not start a server, just re-build project on changes' complete -c zola -n "__fish_seen_subcommand_from serve" -s h -l help -d 'Prints help information' complete -c zola -n "__fish_seen_subcommand_from serve" -s V -l version -d 'Prints version information' complete -c zola -n "__fish_seen_subcommand_from help" -s h -l help -d 'Prints help information'