ofek / pyapp

Runtime installer for Python applications
https://ofek.dev/pyapp/
1.1k stars 24 forks source link

Add a `PYAPP_EXPOSE_ALL_COMMANDS` environment variable to expose all the management commands by default #134

Closed FlorentClarret closed 1 month ago

FlorentClarret commented 1 month ago

I used PyApp and enabled all the management commands, so I ended up with this:

PYAPP_EXPOSE_PIP: 1
PYAPP_EXPOSE_PYTHON: 1
PYAPP_EXPOSE_CACHE: 1
PYAPP_EXPOSE_METADATA: 1
PYAPP_EXPOSE_PYTHON_PATH: 1

This PR introduces the PYAPP_EXPOSE_ALL_COMMANDS environment variable that would enable all of them if it is set to 1 or true. Users can still explicitly disable some commands if they want to, e.g.:

PYAPP_EXPOSE_ALL_COMMANDS: 1
PYAPP_EXPOSE_PIP: 0