projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extras: Remove deprecated consumer commands in bash completion
[lttng-tools.git]
/
extras
/
lttng-bash_completion
diff --git
a/extras/lttng-bash_completion
b/extras/lttng-bash_completion
index 00ac17ef0abf86d48e0a31999b0380581167bb8f..b5f861c56a2fd55c5c2dfc6e463310a8b32cdf57 100644
(file)
--- a/
extras/lttng-bash_completion
+++ b/
extras/lttng-bash_completion
@@
-20,7
+20,7
@@
_lttng_complete_sessions() {
return
}
return
}
-_lttng_cmd_add
_
context() {
+_lttng_cmd_addcontext() {
local add_context_opts
add_context_opts=$(lttng add-context --list-options)
local add_context_opts
add_context_opts=$(lttng add-context --list-options)
@@
-32,9
+32,6
@@
_lttng_cmd_add_context() {
--channel|-c)
return
;;
--channel|-c)
return
;;
- --event|-e)
- return
- ;;
--type|-t)
return
;;
--type|-t)
return
;;
@@
-147,7
+144,7
@@
_lttng_cmd_disablechannel() {
esac
}
esac
}
-_lttng_cmd_disable
_
event() {
+_lttng_cmd_disableevent() {
local disable_event_opts
disable_channel_opts=$(lttng disable-event --list-options)
local disable_event_opts
disable_channel_opts=$(lttng disable-event --list-options)
@@
-171,7
+168,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)
@@
-187,7
+184,7
@@
_lttng_cmd_list() {
esac
}
esac
}
-_lttng_cmd_set
_
session() {
+_lttng_cmd_setsession() {
local set_session_opts
set_session_opts=$(lttng set-session --list-options)
local set_session_opts
set_session_opts=$(lttng set-session --list-options)
@@
-249,6
+246,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.02474 seconds
and
5
git commands to generate.