Minimal Python greeting CLI with file-based logging via icecream.
Create a virtual environment and install dependencies:
python3 -m venv .venv
.venv/bin/pip install -r requirements-dev.txtPYTHON=.venv/bin/python make runCustom name:
.venv/bin/python src/main.py --name AliceBy default, logs are appended to hello-world.log in the repo root.
Override the log file path with:
.venv/bin/python src/main.py --log-file /tmp/hello-world.logOr via environment variable:
HELLO_WORLD_LOG_FILE=/tmp/hello-world.log .venv/bin/python src/main.pyPYTHON=.venv/bin/python make test