Without Rtkify:
cd .. && ENV=1 ~/.cargo/bin/cargo test some_test -- --nocapture 2>&1; echo "exit: $?"
rtkdetects thecdand so skips the whole command.
With Rtkify:
cd .. && ENV=1 rtk cargo test some_test -- --nocapture 2>&1; echo "exit: $?"
rtkifycreates an AST of the command and detects thatcdandcargoare separate commands, so it only skips thecdand rewrites thecargocommand as expected.
npx -p @arthur-fontaine/rtkify rtkify <command>If you want to install it globally, you can use the following command:
npm install -g @arthur-fontaine/rtkifyThen you can use it as follows:
rtkify <command>