--rep-type should support upper and lower case, but only upper working... I believe we have a bug!
Signed-off-by: Tony Asleson <tasle...@redhat.com> --- doc/lsmcli.bash | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/doc/lsmcli.bash b/doc/lsmcli.bash index 898f81c..30ed0d4 100644 --- a/doc/lsmcli.bash +++ b/doc/lsmcli.bash @@ -51,7 +51,7 @@ _lsm() opts_long=" --help --version --uri --prompt --human --terse --enum \ --force --wait --header --script " opts_cmds="list job-status capabilities plugin-info volume-create \ - volume-delete, volume-resize" + volume-delete, volume-resize volume-replicate" list_args="--type" list_type_args="volumes pools fs snapshots exports nfs_client_auth \ @@ -64,6 +64,10 @@ _lsm() volume_delete_args="--vol --force" # Should force be here, to easy to tab through?" volume_resize_args="--vol --size --force" # Should force be here, to easy to tab through?" + volume_replicate_args="--vol --name --rep-type" + # Hmmm, this looks like a bug with CLI, should support lower and upper case? + volume_rep_types="CLONE COPY MIRROR_ASYNC MIRROR_SYNC" + # Check if we have somthing present that we can help the user with case "${prev}" in '--sys') @@ -129,6 +133,10 @@ _lsm() COMPREPLY=( $(compgen -W "" -- ${cur}) ) return 0 ;; + '--rep-type') + COMPREPLY=( $(compgen -W "${volume_rep_types}" -- ${cur}) ) + return 0 + ;; *) ;; esac @@ -159,6 +167,11 @@ _lsm() COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; + volume-replicate) + possible_args "${volume_replicate_args}" + COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) + return 0 + ;; capabilities) possible_args "${cap_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) -- 1.7.1 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Libstoragemgmt-devel mailing list Libstoragemgmt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libstoragemgmt-devel