search for: _guestfs_options_only

Displaying 7 results from an estimated 7 matches for "_guestfs_options_only".

2020 Mar 10
1
[v2v PATCH] bash: remove extra registrations
The virt-v2v-copy-to-local completion script definitely does not need to register completions for libguestfs-test-tool, and virt-win-reg, as they are libguestfs tools. Also, rename the helper _guestfs_options_only to _v2v_options_only, to avoid potential clashes with the libguestfs completion scripts. --- bash/virt-v2v-copy-to-local | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/bash/virt-v2v-copy-to-local b/bash/virt-v2v-copy-to-local index 8360b0b9..c14bbc47 100644 -...
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 +++
2017 Mar 24
1
[PATCH] bash: Implement tab completion for virt-win-reg (RHBZ#1367738).
...-local index 4442da2..1296f26 100644 --- a/bash/virt-v2v-copy-to-local +++ b/bash/virt-v2v-copy-to-local @@ -15,28 +15,39 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -_virt_v2v_copy_to_local () +_guestfs_options_only () { local cur prev words cword split - local shortopts longopts items + local shortopts longopts tool="$1" _init_completion -s || return case "$cur" in --*) # --options - longopts="$(virt-v2v-copy-to-local --long-o...
2016 Aug 25
0
[PATCH 5/5] bash completion: Add missing bash completion scripts (RHBZ#1367738).
...R A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -_guestfs_options_only () -{ - local cur prev words cword split - local shortopts longopts tool="$1" - - _init_completion -s || return - - case "$prev" in - --align-first) - COMPREPLY=( $( compgen -W "never always auto" -- "$cur") ) - return...
2018 Jun 27
5
[PATCH 0/3] test-tool: small options-related improvements
*** BLURB HERE *** Pino Toscano (3): test-tool: implement --short-options & --long-options test-tool: add a documentation test bash: add a completion script for libguestfs-test-tool .gitignore | 1 + bash/Makefile.am | 3 ++- bash/virt-v2v-copy-to-local | 6 +++++ test-tool/Makefile.am
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.
2015 Oct 23
2
[PATCH 1/2] resize: add --unknown-filesystems
...5 ++++++++++++++++++++++++++++++++++++++++++++++++-- resize/virt-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 ;; e...