bash_completion: add missing attributes

There a some attributes missing which are shown in man pages:
zfs list -t type
           A comma-separated list of types to display, where type is one of filesystem, snapshot, volume, *bookmark*, or all.  For example, specifying -t snapshot displays only snapshots.
zfs get -s source
           A comma-separated list of sources to display.  Those properties coming from a source other than those in this list are ignored.  Each source must be one of the following: local, default, inherited, temporary, *received*, and none.  The default value is all sources.
zfs get -t type
           A comma-separated list of types to display, where type is one of filesystem, snapshot, volume, bookmark, or all.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Grischa Zengel <github.zfsonlinux@zengel.info>
Closes #10418
This commit is contained in:
Grischa Zengel 2020-06-11 02:51:15 +02:00 committed by GitHub
parent f66434268c
commit 2bc07c6dff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -209,10 +209,10 @@ __zfs_complete()
COMPREPLY=($(compgen -W "" -- "$cur")) COMPREPLY=($(compgen -W "" -- "$cur"))
;; ;;
-t) -t)
__zfs_complete_multiple_options "filesystem volume snapshot all" "$cur" __zfs_complete_multiple_options "filesystem volume snapshot bookmark all" "$cur"
;; ;;
-s) -s)
__zfs_complete_multiple_options "local default inherited temporary none" "$cur" __zfs_complete_multiple_options "local default inherited temporary received none" "$cur"
;; ;;
-o) -o)
__zfs_complete_multiple_options "name property value source received all" "$cur" __zfs_complete_multiple_options "name property value source received all" "$cur"
@ -242,7 +242,7 @@ __zfs_complete()
COMPREPLY=($(compgen -W "" -- "$cur")) COMPREPLY=($(compgen -W "" -- "$cur"))
;; ;;
-t) -t)
__zfs_complete_multiple_options "filesystem volume snapshot all" "$cur" __zfs_complete_multiple_options "filesystem volume snapshot bookmark all" "$cur"
;; ;;
-o) -o)
__zfs_complete_multiple_options "$(__zfs_get_properties)" "$cur" __zfs_complete_multiple_options "$(__zfs_get_properties)" "$cur"