| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Enable shell command substitution via execute_commands=True on load_dotenv() and dotenv_values(), or --execute-commands on the CLI, so trusted .env files can populate variables from command output like gh auth token. Co-authored-by: Cursor <cursoragent@cursor.com>
Remove the gh auth token integration test that fails on unauthenticated runners, skip POSIX shell env expansion on Windows, and use python --version instead of printenv --version in CLI flag tests. Co-authored-by: Cursor <cursoragent@cursor.com>
| Back | FazBrowse Home | New Git URL |
Summary
This adds optional command substitution for .env values using shell-style $(command) syntax — useful for things like pulling a token at load time:
GITHUB_TOKEN=$(gh auth token)It's off by default. Enable it with execute_commands=True on load_dotenv() / dotenv_values(), or --execute-commands on the CLI (list, get, run).
Resolution happens after normal ${VAR} interpolation, so mixed values like PREFIX=${BASE}-$(echo suffix) work as expected. Failed commands log a warning and resolve to an empty string.
Test plan
Notes
Disclaimer: AI tools were used to help with parts of the implementation and tests, but I reviewed everything before pushing.
Made with Cursor