Version: 0.1.00.1.10.1.20.1.30.1.40.1.50.2.00.2.10.3.01.0.01.1.01.1.11.2.01.3.01.3.11.3.21.3.31.3.41.3.51.3.61.3.71.3.81.3.91.3.101.4.0-beta.11.4.01.4.11.4.21.4.31.4.41.4.51.4.62.1.02.1.12.1.22.1.32.1.42.1.52.1.62.1.72.1.82.1.92.2.02.3.02.3.12.3.22.3.32.3.42.3.52.3.62.3.72.3.82.3.92.3.102.3.11-dev.02.3.11-dev.13.0.13.0.23.0.33.0.43.0.53.0.63.0.73.0.83.0.93.0.103.0.113.0.123.0.133.0.143.0.153.0.163.0.173.0.183.1.03.1.13.1.23.1.33.1.43.1.53.1.63.1.73.1.83.1.93.1.103.1.113.2.03.2.13.2.23.2.33.2.43.2.53.2.63.2.73.2.83.2.93.2.103.2.113.2.123.2.133.2.143.2.153.2.163.2.173.2.183.2.193.2.20
declare const script = "#!/usr/bin/env bash\n\n_<CLI_BIN>_autocomplete()\n{\n\n local cur=\"${COMP_WORDS[COMP_CWORD]}\" opts IFS=$' \\t\\n'\n COMPREPLY=()\n\n local commands=\"\n<BASH_COMMANDS_WITH_FLAGS_LIST>\n\"\n\n if [[ \"$cur\" != \"-\"* ]]; then\n opts=$(printf \"$commands\" | grep -Eo '^[a-zA-Z0-9:_-]+')\n else\n local __COMP_WORDS\n if [[ ${COMP_WORDS[2]} == \":\" ]]; then\n #subcommand\n __COMP_WORDS=$(printf \"%s\" \"${COMP_WORDS[@]:1:3}\")\n else\n #simple command\n __COMP_WORDS=\"${COMP_WORDS[@]:1:1}\"\n fi\n opts=$(printf \"$commands\" | grep \"${__COMP_WORDS}\" | sed -n \"s/^${__COMP_WORDS} //p\")\n fi\n _get_comp_words_by_ref -n : cur\n COMPREPLY=( $(compgen -W \"${opts}\" -- ${cur}) )\n __ltrim_colon_completions \"$cur\"\n return 0\n\n}\n\ncomplete -o default -F _<CLI_BIN>_autocomplete <CLI_BIN>\n";
export default script;