Debian Codegraph @

libexec/pyenv-shims

raw symbols SCIP
1 #!/usr/bin/env bash
2 # Summary: List existing pyenv shims
3 # Usage: pyenv shims [--short]
4
5 set -e
6 [ -n "$PYENV_DEBUG" ] && set -x
7
8 # Provide pyenv completions
9 if [ "$1" = "--complete" ]; then
10 echo --short
11 exit
12 fi
13
14 shopt -s nullglob
15
16 for command in "${PYENV_ROOT}/shims/"*; do
17 if [ "$1" = "--short" ]; then
18 echo "${command##*/}"
19 else
20 echo "$command"
21 fi
22 done | sort