nixbot

builds

succeeded shell-completion-test checks.x86_64-linux.shell-completions · build #88 · raw

1=== Testing bash completion ===2_cntr is a function3_cntr () 4{ 5 local cur prev words cword;6 _init_completion || return;7 local subcommands="attach exec help version";8 local common_opts="-t --type --apparmor -h --help -V --version";9 local attach_opts="--effective-user";10 local subcommand="";11 local i;12 for ((i = 1; i < cword; i++))13 do14 case "${words[i]}" in 15 attach | exec | help | version)16 subcommand="${words[i]}";17 break18 ;;19 esac;20 done;21 case "$subcommand" in 22 attach)23 case "$prev" in 24 -t | --type)25 COMPREPLY=($(compgen -W "$(_cntr_container_types)" -- "$cur"));26 return27 ;;28 --apparmor)29 COMPREPLY=($(compgen -W "$(_cntr_apparmor_modes)" -- "$cur"));30 return31 ;;32 --effective-user)33 COMPREPLY=($(compgen -u -- "$cur"));34 return35 ;;36 esac;37 if [[ "$cur" == -* ]]; then38 COMPREPLY=($(compgen -W "$common_opts $attach_opts" -- "$cur"));39 else40 COMPREPLY=($(compgen -W "$(_cntr_containers)" -- "$cur"));41 fi42 ;;43 exec)44 case "$prev" in 45 -t | --type)46 COMPREPLY=($(compgen -W "$(_cntr_container_types)" -- "$cur"));47 return48 ;;49 --apparmor)50 COMPREPLY=($(compgen -W "$(_cntr_apparmor_modes)" -- "$cur"));51 return52 ;;53 esac;54 if [[ "$cur" == -* ]]; then55 COMPREPLY=($(compgen -W "$common_opts" -- "$cur"));56 else57 COMPREPLY=($(compgen -W "$(_cntr_containers)" -- "$cur"));58 fi59 ;;60 help | version)6162 ;;63 *)64 COMPREPLY=($(compgen -W "$subcommands" -- "$cur"))65 ;;66 esac67}68Bash completions: attach exec help version69=== Testing zsh completion ===70_arguments:comparguments:327: can only be called from completion function71=== Testing fish completion ===72=== Testing nushell completion ===73true