Skip to content

Commit

Permalink
Update define-topic-handler completion
Browse files Browse the repository at this point in the history
  • Loading branch information
desa committed Oct 6, 2017
1 parent f636543 commit 396ab78
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions usr/share/bash-completion/completions/kapacitor
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,7 @@ _kapacitor()
fi
;;
define-topic-handler)
if [[ -z "${COMP_WORDS[2]}" || ("$cur" = "${COMP_WORDS[2]}" && -z "${COMP_WORDS[3]}") ]]
then
words=$(_kapacitor_list topics "$cur")
else
_kapacitor_json_yaml_files "${cur}"
fi
_kapacitor_json_yaml_files "${cur}"
;;
replay)
case "$prev" in
Expand Down

0 comments on commit 396ab78

Please sign in to comment.