Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mommy should tell me her version #68

Open
lilyball opened this issue Nov 21, 2023 · 2 comments
Open

mommy should tell me her version #68

lilyball opened this issue Nov 21, 2023 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@lilyball
Copy link

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
Copy link
Contributor

5225225 commented Nov 21, 2023

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
Copy link
Owner

Gankra commented Nov 21, 2023

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

@Gankra Gankra added enhancement New feature or request help wanted Extra attention is needed labels Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants