projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: snapshot record error handling
[lttng-tools.git]
/
extras
/
lttng-bash_completion
diff --git
a/extras/lttng-bash_completion
b/extras/lttng-bash_completion
index b5f861c56a2fd55c5c2dfc6e463310a8b32cdf57..bff8df724276992d02d714e31ebc4b28d4380b80 100644
(file)
--- a/
extras/lttng-bash_completion
+++ b/
extras/lttng-bash_completion
@@
-16,7
+16,12
@@
#
_lttng_complete_sessions() {
#
_lttng_complete_sessions() {
- # TODO, maybe have a lttng list --simple or something like that
+ # TODO
+ # This code does nothing for now. When there is a mecanism to get the
+ # existing sessions, use it to fill the sessions variable.
+ local sessions
+ sessions=""
+ COMPREPLY=( $(compgen -W "${sessions}" -- $cur) )
return
}
return
}
@@
-146,7
+151,7
@@
_lttng_cmd_disablechannel() {
_lttng_cmd_disableevent() {
local disable_event_opts
_lttng_cmd_disableevent() {
local disable_event_opts
- disable_
channel
_opts=$(lttng disable-event --list-options)
+ disable_
event
_opts=$(lttng disable-event --list-options)
case $prev in
--session|-s)
case $prev in
--session|-s)
@@
-181,6
+186,9
@@
_lttng_cmd_list() {
COMPREPLY=( $(compgen -W "${list_opts}" -- $cur) )
return
;;
COMPREPLY=( $(compgen -W "${list_opts}" -- $cur) )
return
;;
+ *)
+ _lttng_complete_sessions
+ return
esac
}
esac
}
@@
-193,6
+201,10
@@
_lttng_cmd_setsession() {
COMPREPLY=( $(compgen -W "${set_session_opts}" -- $cur) )
return
;;
COMPREPLY=( $(compgen -W "${set_session_opts}" -- $cur) )
return
;;
+ *)
+ _lttng_complete_sessions
+ return
+ ;;
esac
}
esac
}
This page took
0.02583 seconds
and
4
git commands to generate.