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
Is your feature request related to a problem? Please describe.
Using "cargo cmd" as a precommit hook always succed.
I would like to be able to use cargo commander as a fail-able script for git precommit hook.
Describe the solution you'd like
Add an option "continue_if_rc" that could be used as :
Is your feature request related to a problem? Please describe.
Using "cargo cmd" as a precommit hook always succed.
I would like to be able to use cargo commander as a fail-able script for git precommit hook.
Describe the solution you'd like
Add an option "continue_if_rc" that could be used as :
precommit = { cmd=[
"cargo clippy",
"cargo +nightly fmt --check"
], continue_if_rc=0}
if clippy fail then fmt is not run and cargo cmd return non-zero return-code. if fmt fail then cargo cmd return non-zero return-code.
The text was updated successfully, but these errors were encountered: