[lttng-dev] [PATCH lttng-tools 3/5] bash completion: Remove deprecated consumer commands

simon.marchi at polymtl.ca simon.marchi at polymtl.ca
Mon Jul 29 15:22:43 EDT 2013


From: Simon Marchi <simon.marchi at polymtl.ca>

enable/disable consumer were removed a while ago. Remove autocomplete
for them to discourage people of using them.

Reported-by: Daniel U. Thibault <daniel.thibault at drdc-rddc.gc.ca>
Signed-off-by: Simon Marchi <simon.marchi at polymtl.ca>
---
 extras/lttng-bash_completion |   38 --------------------------------------
 1 files changed, 0 insertions(+), 38 deletions(-)

diff --git a/extras/lttng-bash_completion b/extras/lttng-bash_completion
index a90820a..b5f861c 100644
--- a/extras/lttng-bash_completion
+++ b/extras/lttng-bash_completion
@@ -125,44 +125,6 @@ _lttng_cmd_enableevent() {
 	esac
 }
 
-_lttng_cmd_enableconsumer() {
-	local enable_consumer_opts
-		enable_consumer_opts=$(lttng enable-consumer --list-options)
-
-	case $prev in
-	--session|-s)
-		_lttng_complete_sessions
-		return
-		;;
-	esac
-
-	case $cur in
-	-*)
-		COMPREPLY=( $(compgen -W "${enable_consumer_opts}" -- $cur) )
-		return
-		;;
-	esac
-}
-
-_lttng_cmd_disableconsumer() {
-	local disable_consumer_opts
-		disable_consumer_opts=$(lttng disable-consumer --list-options)
-
-	case $prev in
-	--session|-s)
-		_lttng_complete_sessions
-		return
-		;;
-	esac
-
-	case $cur in
-	-*)
-		COMPREPLY=( $(compgen -W "${disable_consumer_opts}" -- $cur) )
-		return
-		;;
-	esac
-}
-
 _lttng_cmd_disablechannel() {
 	local disable_channel_opts
 	disable_channel_opts=$(lttng disable-channel --list-options)
-- 
1.7.1




More information about the lttng-dev mailing list