Skip to content

rm289/hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hello-world

Minimal Python greeting CLI with file-based logging via icecream.

Setup

Create a virtual environment and install dependencies:

python3 -m venv .venv
.venv/bin/pip install -r requirements-dev.txt

Run

PYTHON=.venv/bin/python make run

Custom name:

.venv/bin/python src/main.py --name Alice

Logging

By 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.log

Or via environment variable:

HELLO_WORLD_LOG_FILE=/tmp/hello-world.log .venv/bin/python src/main.py

Test

PYTHON=.venv/bin/python make test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors