-
Couldn't load subscription status.
- Fork 39
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Just as there are specialized function to retrieve text or json, there should be a function to retrieve the code of the command (in may cases such as in git diff --quiet that is all I am interested in,
Example:
const result = await $`echo 1`.code();
console.log(result); // 0If I just want the code, then the noThrow should be implicit.
As of now I have to execute the command with noThrow and then fish for the code.
It's a nice to have but I think it would increase the DX.
Thanks for a great library.
NfNitLoop
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request