~reviewer/hello-hut

ref: 595fc0f47efad13fc9690626c0920249545bcdb1 hello-hut/src/hello_hut/cli.py -rw-r--r-- 2.4 KiB
e9c5dfad — Noor Haddad 22 days ago
cli: add --lang to pick the greeting language
929dcec4 — Priya Raman 3 months ago
Add --format=json for scripting
948f89ca — Tomás Varga 3 months ago
Respect NO_COLOR and add --color
96254235 — Felix Brandt 4 months ago
Add --count to repeat the greeting

Implements: https://todo.hut.md/~reviewer/hello-hut/2
ffb728d5 — Elif Demir 6 months ago
Read defaults from ~/.config/hello-hut/config.toml

Uses tomllib where available; on Python < 3.11 the file is ignored.
adec9591 — Priya Raman 7 months ago
Add --time-of-day greetings
c928c9bd — Tomás Varga 7 months ago
Add --shout to print the greeting in capitals

Use str.upper() so that accented names keep their accents.
1e45c58c — Mira Okafor 7 months ago
cli: accept the name as a positional argument

`hello-hut Ada` reads better than `hello-hut --name Ada`.
ddfb81ba — Dana Whitfield 7 months ago
Add greeting module and command-line entry point

hello-hut greets whoever is passed with --name, or "friend" by
default.