All Downloads are FREE. Search and download functionalities are using the official Maven repository.

halyard.halyard-cli.1.67.0.source-code.hal-completor-case Maven / Gradle / Ivy


    ptr="${COMP_WORDS[{%depth%}]}"

    if [ "${ptr}" = "{%command%}" ]; then

        if [ "{%next%}" -eq "$COMP_CWORD" ]; then

            local flags subcommands

            flags="{%flags%}"
            subcommands="{%subcommands%}"

            if [[ "${cur}" == -* ]]; then
                COMPREPLY=( $(compgen -W "${flags}" -- ${cur}) )
                return 0
            fi

            COMPREPLY=( $(compgen -W "${subcommands}" -- ${cur}) )
            return 0

        else

        {%recurse%}

        fi

    fi





© 2015 - 2025 Weber Informatics LLC | Privacy Policy