From 4900230881d618c52faec54fb4960eb2b30498c7 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Thu, 13 Aug 2015 12:21:55 -0400 Subject: [PATCH] Remove command shell completion script This feature is unused and doesn't provide much value. In the future, we may include autocompletion support built in the CLI. --- completion/resin.sh | 49 --------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 completion/resin.sh diff --git a/completion/resin.sh b/completion/resin.sh deleted file mode 100644 index 88499982..00000000 --- a/completion/resin.sh +++ /dev/null @@ -1,49 +0,0 @@ -_resin() { - COMPREPLY=() - - local current="${COMP_WORDS[COMP_CWORD]}" - local previous="${COMP_WORDS[COMP_CWORD-1]}" - local options="version help login logout signup drive whoami app apps init devices device note preferences keys key envs env logs os examples example" - - case "${previous}" in - app) - local subcommands="create rm restart" - COMPREPLY=( $(compgen -W "${subcommands}" -- ${current}) ) - return 0 ;; - drive) - local subcommands="list" - COMPREPLY=( $(compgen -W "${subcommands}" -- ${current}) ) - return 0 ;; - devices) - local subcommands="supported" - COMPREPLY=( $(compgen -W "${subcommands}" -- ${current}) ) - return 0 ;; - device) - local subcommands="rename rm identify init" - COMPREPLY=( $(compgen -W "${subcommands}" -- ${current}) ) - return 0 ;; - key) - local subcommands="add rm" - COMPREPLY=( $(compgen -W "${subcommands}" -- ${current}) ) - return 0 ;; - env) - local subcommands="add rename rm" - COMPREPLY=( $(compgen -W "${subcommands}" -- ${current}) ) - return 0 ;; - os) - local subcommands="download install" - COMPREPLY=( $(compgen -W "${subcommands}" -- ${current}) ) - return 0 ;; - example) - local subcommands="clone" - COMPREPLY=( $(compgen -W "${subcommands}" -- ${current}) ) - return 0 ;; - *) - ;; - esac - - COMPREPLY=( $(compgen -W "${options}" -- ${current}) ) - return 0 -} - -complete -F _resin resin