dev-python/typer: fix bash comp script

This commit is contained in:
odrling 2024-04-05 23:45:19 +02:00
parent c1c5bc160d
commit 3d1fbe5892
No known key found for this signature in database
GPG key ID: EC907F69A27A90C5

View file

@ -77,7 +77,7 @@ typer_gencomp() {
compfile="$(typer_get_comp "${@}")"
_TYPER_COMPLETE_TEST_DISABLE_SHELL_DETECTION=1 python -m typer --show-completion "${shell}" |
sed 's/python -m //g ; s/_PYTHON _M //g' > "${compfile}" ||
sed 's/python -m //g ; s/_PYTHON _M //g ; s/python_m/g' > "${compfile}" ||
die "failed to generate ${shell} completion"
}