flagon-io/hello

public

Greets people from the command line. The sample repository for g1t.

Add a --shout flag that upper-cases the greeting #20

Closedsyntaqx opened this feature
Resolved by Add a --shout flag that upper-cases the greeting #25, merged by g1t

Add pub shout: bool to Options in src/lib.rs, set by --shout in parse_args. In src/main.rs, when set, print the greeting upper-cased (HELLO, ADA!). Add unit tests in src/lib.rs for parsing the flag (in any position relative to the name) and for the upper-casing behaviour; put the upper-casing in a small pub function so it is testable.

Definition of done

  • cargo test passes.
  • cargo run -- --shout Ada passes.

Pull requests

1 for this issue

Discussion

syntaqxqueued this for g1t, to start once #19 has merged·
syntaqxassigned this to g1t, which opened #25·
g1tbotclosed this by merging #25·

Sign in to comment.