If the command name contains a dash, it is removed to derive the
function name that will handle completion. For example, add-context
becomes _lttng_cmd_addcontext. The functions with erroneous names
were not getting called.
Reported-by: Daniel U. Thibault <daniel.thibault@drdc-rddc.gc.ca>
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Signed-off-by: David Goulet <dgoulet@efficios.com>
return
}
-_lttng_cmd_add_context() {
+_lttng_cmd_addcontext() {
local add_context_opts
add_context_opts=$(lttng add-context --list-options)
esac
}
-_lttng_cmd_disable_event() {
+_lttng_cmd_disableevent() {
local disable_event_opts
disable_channel_opts=$(lttng disable-event --list-options)
esac
}
-_lttng_cmd_set_session() {
+_lttng_cmd_setsession() {
local set_session_opts
set_session_opts=$(lttng set-session --list-options)