You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many people have asked, it might be reasonable to have the cargo-mommy package include two binaries: cargo-mommy (the current one) and mommy (a new one). The mommy binary would behave more like time or whatever, in that it would execute all the arguments that follow, without any notion of "re-invoking cargo". cargo mommy check would be basically equivalent to mommy cargo check, i think.
If we want to do this, the bulk of main.rs should be hoisted into a new lib.rs, as both binaries would share most logic.
They would basically differ in the cli logic in main.rs:
Ideally this separate binary would have the optional ability to just take in a process exit code number and use that directly, its possible already using CARGO_MOMMYS_ACTUAL=bash cargo-mommy -c "exit $?" in a zsh precmd hook to integrate it with my shell, but it feels like quite a hack, it'd be nice if i could just pass cargo mommy the $? exit code directly and have it react on that, since then there isnt the overhead of spinning up bash and running exit and all
Doesn't work for me but CARGO_MOMMYS_ACTUAL=echo >> /dev/null cargo-mommy does and it feel a bit more clean. Although a standalone binary would still be nice.
Many people have asked, it might be reasonable to have the cargo-mommy package include two binaries:
cargo-mommy
(the current one) andmommy
(a new one). Themommy
binary would behave more liketime
or whatever, in that it would execute all the arguments that follow, without any notion of "re-invoking cargo".cargo mommy check
would be basically equivalent tomommy cargo check
, i think.If we want to do this, the bulk of
main.rs
should be hoisted into a newlib.rs
, as both binaries would share most logic.They would basically differ in the cli logic in main.rs:
cargo-mommy/src/main.rs
Lines 45 to 168 in 0ec1736
The text was updated successfully, but these errors were encountered: