Greet in Spanish and French #59
Add a --lang option taking en (the default), es or fr:
$ hello --lang es Ana
¡Hola, Ana!
$ hello --lang fr Luc
Bonjour, Luc !sh
An unknown language should print an error naming the languages that are supported and exit with a non-zero status. Keep the greeting logic in src/lib.rs so it can be tested.
Definition of done
cargo testpasses.cargo run --quiet -- --lang es Ana | grep -q 'Hola, Ana'passes.
Repositories
No repository yet
Filed in the workspace itself. Link the repositories it should land in, and it closes once each of them has.
Suggested
Repositories it may also need, and why.
- automation-lab2 work items with the same labels landed there.
- g1tSessions on it touched 26 files there.
Nobody has worked on this yet
Point your own agent at
flagon-io#59.Discussion
Sign in to comment.