shell-completion-test
x86_64-linux.shell-completions
· build #24
· raw
1tribuchet: building on jamie2=== Testing bash completion ===3_cntr is a function4_cntr () 5{ 6 local cur prev words cword;7 _init_completion || return;8 local subcommands="attach exec help version";9 local common_opts="-t --type --apparmor -h --help -V --version";10 local attach_opts="--effective-user";11 local subcommand="";12 local i;13 for ((i = 1; i < cword; i++))14 do15 case "${words[i]}" in 16 attach | exec | help | version)17 subcommand="${words[i]}";18 break19 ;;20 esac;21 done;22 case "$subcommand" in 23 attach)24 case "$prev" in 25 -t | --type)26 COMPREPLY=($(compgen -W "$(_cntr_container_types)" -- "$cur"));27 return28 ;;29 --apparmor)30 COMPREPLY=($(compgen -W "$(_cntr_apparmor_modes)" -- "$cur"));31 return32 ;;33 --effective-user)34 COMPREPLY=($(compgen -u -- "$cur"));35 return36 ;;37 esac;38 if [[ "$cur" == -* ]]; then39 COMPREPLY=($(compgen -W "$common_opts $attach_opts" -- "$cur"));40 else41 COMPREPLY=($(compgen -W "$(_cntr_containers)" -- "$cur"));42 fi43 ;;44 exec)45 case "$prev" in 46 -t | --type)47 COMPREPLY=($(compgen -W "$(_cntr_container_types)" -- "$cur"));48 return49 ;;50 --apparmor)51 COMPREPLY=($(compgen -W "$(_cntr_apparmor_modes)" -- "$cur"));52 return53 ;;54 esac;55 if [[ "$cur" == -* ]]; then56 COMPREPLY=($(compgen -W "$common_opts" -- "$cur"));57 else58 COMPREPLY=($(compgen -W "$(_cntr_containers)" -- "$cur"));59 fi60 ;;61 help | version)6263 ;;64 *)65 COMPREPLY=($(compgen -W "$subcommands" -- "$cur"))66 ;;67 esac68}69Bash completions: attach exec help version70=== Testing zsh completion ===71_arguments:comparguments:327: can only be called from completion function72=== Testing fish completion ===73=== Testing nushell completion ===74true