@@ -1026,26 +1026,27 @@ send_completions() {
10261026 echo $' # Modifying it manually is not recommended'
10271027 echo $' _rush_completions() {'
10281028 echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
1029+ echo $' local comp_line="${COMP_WORDS[*]:1}"'
10291030 echo $' '
1030- echo $' case "$COMP_LINE " in'
1031- echo $' \' rush completions\' *) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1032- echo $' \' rush default\' *) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1033- echo $' \' rush remove\' *) COMPREPLY=($(compgen -W "--help --purge -h -p" -- "$cur")) ;;'
1034- echo $' \' rush config\' *) COMPREPLY=($(compgen -W "--edit --help -e -h" -- "$cur")) ;;'
1035- echo $' \' rush snatch\' *) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1036- echo $' \' rush search\' *) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1037- echo $' \' rush clone\' *) COMPREPLY=($(compgen -A directory -W "--default --help --ignore --name --shallow --ssh -d -h -i -n -s -w" -- "$cur")) ;;'
1038- echo $' \' rush pull\' *) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1039- echo $' \' rush push\' *) COMPREPLY=($(compgen -W "--all --help --message -a -h -m" -- "$cur")) ;;'
1040- echo $' \' rush undo\' *) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
1041- echo $' \' rush copy\' *) COMPREPLY=($(compgen -W "$(rush list -s) --force --help -f -h" -- "$cur")) ;;'
1042- echo $' \' rush info\' *) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
1043- echo $' \' rush list\' *) COMPREPLY=($(compgen -W "--help --simple -h -s" -- "$cur")) ;;'
1044- echo $' \' rush edit\' *) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
1045- echo $' \' rush show\' *) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
1046- echo $' \' rush add\' *) COMPREPLY=($(compgen -A directory -W "--help -h" -- "$cur")) ;;'
1047- echo $' \' rush get\' *) COMPREPLY=($(compgen -W "$(rush list -s) --clone --help -c -h" -- "$cur")) ;;'
1048- echo $' \' rush \' *) COMPREPLY=($(compgen -W "$(rush list -s) --help --version -h -v add clone completions config copy default edit get info list pull push remove search show snatch undo" -- "$cur")) ;;'
1031+ echo $' case "$comp_line " in'
1032+ echo $' \' completions\' *) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1033+ echo $' \' default\' *) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1034+ echo $' \' remove\' *) COMPREPLY=($(compgen -W "--help --purge -h -p" -- "$cur")) ;;'
1035+ echo $' \' config\' *) COMPREPLY=($(compgen -W "--edit --help -e -h" -- "$cur")) ;;'
1036+ echo $' \' snatch\' *) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1037+ echo $' \' search\' *) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1038+ echo $' \' clone\' *) COMPREPLY=($(compgen -A directory -W "--default --help --ignore --name --shallow --ssh -d -h -i -n -s -w" -- "$cur")) ;;'
1039+ echo $' \' pull\' *) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1040+ echo $' \' push\' *) COMPREPLY=($(compgen -W "--all --help --message -a -h -m" -- "$cur")) ;;'
1041+ echo $' \' undo\' *) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
1042+ echo $' \' copy\' *) COMPREPLY=($(compgen -W "$(rush list -s) --force --help -f -h" -- "$cur")) ;;'
1043+ echo $' \' info\' *) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
1044+ echo $' \' list\' *) COMPREPLY=($(compgen -W "--help --simple -h -s" -- "$cur")) ;;'
1045+ echo $' \' edit\' *) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
1046+ echo $' \' show\' *) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
1047+ echo $' \' add\' *) COMPREPLY=($(compgen -A directory -W "--help -h" -- "$cur")) ;;'
1048+ echo $' \' get\' *) COMPREPLY=($(compgen -W "$(rush list -s) --clone --help -c -h" -- "$cur")) ;;'
1049+ echo $' \'\' *) COMPREPLY=($(compgen -W "$(rush list -s) --help --version -h -v add clone completions config copy default edit get info list pull push remove search show snatch undo" -- "$cur")) ;;'
10491050 echo $' esac'
10501051 echo $' }'
10511052 echo $' '
0 commit comments