search for: compreply

Displaying 9 results from an estimated 9 matches for "compreply".

2016 Aug 25
0
[PATCH 5/5] bash completion: Add missing bash completion scripts (RHBZ#1367738).
...-copy-in virt-copy-out virt-tar-in virt-tar-out: rm -f $@ - $(LN_S) virt-resize $@ + $(LN_S) guestfish $@ if HAVE_BASH_COMPLETION diff --git a/bash/guestfish b/bash/guestfish index 0f12690..dd0984a 100644 --- a/bash/guestfish +++ b/bash/guestfish @@ -73,5 +73,12 @@ _guestfish () COMPREPLY=( $(compgen -W "$cmds" -- "$cur") ) return ;; esac -} && +} + complete -o default -F _guestfish guestfish + +# virt-copy-in etc are literally the same as guestfish +complete -o default -F _guestfish virt-copy-in +complete -o default -F _guestfish virt-...
2014 Nov 26
5
[PATCH] tools: implement --short-options
Just like --long-options, it makes it possible to know which short options are supported by each tool; this can help improving the bash completion, for example. --- align/scan.c | 3 +++ builder/cmdline.ml | 1 + cat/cat.c | 3 +++ cat/filesystems.c | 3 +++ cat/log.c | 3 +++ cat/ls.c | 3 +++
2020 Jul 16
1
[Bug 1443] New: ipset -bash: syntax error near unexpected token `;;'
...wn_hosts_real.*$" | grep -Ev "^(\{|\})" pipeline, and on 975 line there is second. Arch Linux latest: declare -f _known_hosts_real | grep -v __ltrim_colon_completions | grep -Ev "^_known_hosts_real.*$" | grep -Ev "^(\{|\})" | tail -n 5 for i in "${!COMPREPLY[@]}"; do [[ -n ${COMPREPLY[i]} ]] || unset -v COMPREPLY[i]; done; fi; Also can reproduce this on Ubuntu 18.04: declare -f _known_hosts_real | grep -v __ltrim_colon_completions | grep -Ev "^_known_hosts_real.*$" | grep -Ev "^(\{|\})" | tail...
2016 Aug 25
7
[PATCH 0/5] bash completion: Add missing bash completion scripts (RHBZ#1367738).
This implements most of RHBZ#1367738. I didn't bother with virt-v2v-copy-to-local and virt-win-reg, but all the other tools now have full bash completion. Rich.
2017 Mar 22
2
[PATCH] bash: Add a bash completion script for virt-v2v-copy-to-local (RHBZ#1367738).
..._virt_v2v_copy_to_local () +{ + local cur prev words cword split + local shortopts longopts items + + _init_completion -s || return + + case "$cur" in + --*) + # --options + longopts="$(virt-v2v-copy-to-local --long-options)" + COMPREPLY=( $(compgen -W "$longopts" -- "$cur") ) + return ;; + -*) + # -o and --options + shortopts="$(virt-v2v-copy-to-local --short-options)" + longopts="$(virt-v2v-copy-to-local --long-options)" + COMPRE...
2017 Mar 24
1
[PATCH] bash: Implement tab completion for virt-win-reg (RHBZ#1367738).
...local shortopts longopts tool="$1" _init_completion -s || return case "$cur" in --*) # --options - longopts="$(virt-v2v-copy-to-local --long-options)" + longopts="$($tool --long-options)" COMPREPLY=( $(compgen -W "$longopts" -- "$cur") ) return ;; -*) # -o and --options - shortopts="$(virt-v2v-copy-to-local --short-options)" - longopts="$(virt-v2v-copy-to-local --long-options)" + shorto...
2019 Feb 10
21
[PATCH 00/13] Patch blast of salsa wip.testme branch
The contents are the wip.testme branch currently on salsa. I combined the wip.initscript and wip.oxenstored into this and added more things today. I think this is pretty gtg and it's smoke tested (in several cases by scping files around instead of doing package build), so it needs a final extra review and test round before putting it in master branch (which I don't want to force push). I
2019 Jul 11
1
[p2v PATCH] Add bash completion scripts
...USA. + +_p2v_options_only () +{ + local cur prev words cword split + local shortopts longopts tool="$1" + + _init_completion -s || return + + case "$cur" in + --*) + # --options + longopts="$($tool --long-options)" + COMPREPLY=( $(compgen -W "$longopts" -- "$cur") ) + return ;; + -*) + # -o and --options + shortopts="$($tool --short-options)" + longopts="$($tool --long-options)" + COMPREPLY=( $(compgen -W "$shortopt...
2015 Oct 23
2
[PATCH 1/2] resize: add --unknown-filesystems
...resize.pod | 28 +++++++++++++++++++++- 3 files changed, 93 insertions(+), 3 deletions(-) diff --git a/bash/virt-resize b/bash/virt-resize index 4471f07..5627807 100644 --- a/bash/virt-resize +++ b/bash/virt-resize @@ -36,6 +36,9 @@ _guestfs_options_only () --password-crypto) COMPREPLY=( $( compgen -W "md5 sha256 sha512" -- "$cur") ) return ;; + --unknown-filesystems) + COMPREPLY=( $( compgen -W "ignore warn error" -- "$cur") ) + return ;; esac case "$cur" in diff --git a/resiz...