Gankra / cargo-mommy

Mommy's here to support you when running cargo~
https://faultlore.com/cargo-mommy/
Apache License 2.0
726 stars 49 forks source link

mommy should tell me her version #68

Open lilyball opened 9 months ago

lilyball commented 9 months ago

I know it's rude to ask mommy how old she is, but I'd like a way to ask her what her version is (and maybe a list of her moods).

5225225 commented 9 months ago

A mood list can be kinda hacked around by doing CARGO_MOMMYS_MOODS="x", since we list the known moods when an unknown one is used.

Unknown mood x! We were compiled with: chill, thirsty, yikes

cargo mommy --version should probably detect the --version and print out the current version / known moods. Currently it just gets forwarded to cargo, so like

# cargo mommy --version   
cargo 1.75.0-nightly (7046d992f 2023-11-08)
you did it~!

But

cargo 1.75.0-nightly (7046d992f 2023-11-08)
cargo-mommy 0.3.1 (0ec17361d8b)
<positive response, why not :3>

would be good

Gankra commented 9 months ago

I think -v listing chill moods and -vV (or whatever the "really for reals cargo version" flag is) listing all moods would be reasonable.