PHP 8.2.30
Preview: completion.sh.hbs Size: 775 B
/opt/alt/alt-nodejs11/root/lib/node_modules/npm/node_modules/yargs/completion.sh.hbs

###-begin-{{app_name}}-completions-###
#
# yargs command completion script
#
# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc
#    or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.
#
_yargs_completions()
{
    local cur_word args type_list

    cur_word="${COMP_WORDS[COMP_CWORD]}"
    args=("${COMP_WORDS[@]}")

    # ask yargs to generate completions.
    type_list=$({{app_path}} --get-yargs-completions "${args[@]}")

    COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )

    # if no match was found, fall back to filename completion
    if [ ${#COMPREPLY[@]} -eq 0 ]; then
      COMPREPLY=( $(compgen -f -- "${cur_word}" ) )
    fi

    return 0
}
complete -F _yargs_completions {{app_name}}
###-end-{{app_name}}-completions-###

Directory Contents

Dirs: 3 × Files: 7

Name Size Perms Modified Actions
lib DIR
- drwxr-xr-x 2024-03-03 22:41:37
Edit Download
locales DIR
- drwxr-xr-x 2024-03-03 22:41:37
Edit Download
- drwxr-xr-x 2024-03-03 22:41:36
Edit Download
75.80 KB lrw-r--r-- 2021-10-19 09:47:54
Edit Download
775 B lrw-r--r-- 2021-10-19 09:47:54
Edit Download
860 B lrw-r--r-- 2021-10-19 09:47:54
Edit Download
1.17 KB lrw-r--r-- 2021-10-19 09:47:54
Edit Download
2.41 KB lrw-r--r-- 2021-10-19 09:47:54
Edit Download
3.41 KB lrw-r--r-- 2021-10-19 09:47:53
Edit Download
34.52 KB lrw-r--r-- 2021-10-19 09:47:54
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).