Commit 9a3ec37
committed
Implement cowsay command-line tool
- Create cow.py with argparse for command-line argument parsing
- Support dynamic animal selection with --animal flag (defaults to "cow")
- Accept message as positional arguments and join them
- Use getattr() to dynamically call animal functions from cowsay library
- Fetch available animals from cowsay.CHARS instead of hardcoding
- Add requirements.txt with cowsay dependency1 parent c54ba92 commit 9a3ec37
2 files changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments