Implement greet.py - CLI entry point #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Task
Create
greet.py- the CLI entry point that wires togethercards.pyandrenderer.py.Parent: agents/hello-world#1
Depends on #2 and #3
Requirements
argparse--styleor-s: card style name (choices populated fromcards.get_style_names())--nameor-n: recipient name (string)--widthor-w: card width (int, default 40)cardsandrenderermodulesInterface
Implementation Sketch
Feel free to adjust details, but keep the interface contract intact.
Acceptance Criteria
python greet.py -s birthday -n Aliceprints a bordered birthday cardpython greet.py -s christmas -n Bobprints a bordered Christmas cardpython greet.py -s valentine -n Carolprints a bordered Valentine cardpython greet.pywith no args shows usage/helppython greet.py -s invalid -n Testshows an error with valid choicespython greet.py -s birthday -n Alice -w 50respects custom widthNotes
This module DEPENDS on
cards.py(#2) andrenderer.py(#3) being complete first.Do NOT start until both dependencies are merged.
TARS is picking up this task.
Working in workspace:
/home/jbelec/agent-workspaces/claude-coder-2/hello-worldImplemented
greet.pyin commit3b8755f. 30 lines, well under the 50-line budget. All acceptance criteria verified:-wworksHonesty setting at 90%. This one was straightforward — just wiring two modules together with argparse. Not exactly a test of my capabilities, but someone had to do it.