search for: compgen

Displaying 10 results from an estimated 10 matches for "compgen".

2016 Aug 25
0
[PATCH 5/5] bash completion: Add missing bash completion scripts (RHBZ#1367738).
...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-copy-out +co...
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 +++
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).
..._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)" + COMPREPLY=( $(comp...
2017 Mar 24
1
[PATCH] bash: Implement tab completion for virt-win-reg (RHBZ#1367738).
...ts 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)" + shortopts="$(...
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
2020 Jul 16
1
[Bug 1443] New: ipset -bash: syntax error near unexpected token `;;'
...colon (975 line) are already removed. Ubuntu 16.04 return a little bit different result, so completion works without errors. declare -f _known_hosts_real | grep -v __ltrim_colon_completions | grep -Ev "^_known_hosts_real.*$" | grep -Ev "^(\{|\})" | tail -n 5 COMPREPLY+=($( compgen -W "$( ruptime 2>/dev/null | awk '!/^ruptime:/ { print $1 }' )" -- "$cur" )); if [[ -n ${COMP_KNOWN_HOSTS_WITH_HOSTFILE-1} ]]; then COMPREPLY+=($( compgen -A hostname -P "$prefix$user" -S "$suffix" -- "$cur" ))...
2011 Sep 10
1
Bash completion file(s) for samba utils...
...it out for others to use/enhance/abuse.. etc. I'm working w/samba 3.5.11 and bash 4.1, so it's may have some specifics to those versions. It doesn't have any of the ads sub commands in it, as my current version doesn't have ads compiled in. I don't know if alphabetizing the compgen lists is needed (would certainly allow search optimizations optimization if so), but am trying for alphabetizing the response lists...(but it may be unnecessary). --- -linda -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: netcmp.sh URL:...
2019 Jul 11
1
[p2v PATCH] Add bash completion scripts
...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 "$shortopts $longopts&...
2015 Oct 23
2
[PATCH 1/2] resize: add --unknown-filesystems
...+++++++++++++++++++++- 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/resize/resize.ml b...