Add the lttng view command
[lttng-tools.git] / extras / lttng-bash_completion
index 00ac17ef0abf86d48e0a31999b0380581167bb8f..9aacb029491793d471b65810b5e1281e06fd2de7 100644 (file)
@@ -171,7 +171,7 @@ _lttng_cmd_disable_event() {
 
 _lttng_cmd_list() {
        local list_opts
 
 _lttng_cmd_list() {
        local list_opts
-       disable_channel_opts=$(lttng list --list-options)
+       list_opts=$(lttng list --list-options)
 
        case $prev in
        --channel|-c)
 
        case $prev in
        --channel|-c)
@@ -249,6 +249,17 @@ _lttng_cmd_calibrate() {
        esac
 }
 
        esac
 }
 
+_lttng_cmd_view() {
+       local view_opts
+               view_opts=$(lttng view --list-options)
+
+               case $cur in
+               -*)
+               COMPREPLY=( $(compgen -W "${view_opts}" -- $cur) )
+               ;;
+       esac
+}
+
 _lttng_opts() {
        local opts
        opts=$(lttng --list-options)
 _lttng_opts() {
        local opts
        opts=$(lttng --list-options)
This page took 0.023263 seconds and 4 git commands to generate.