dsherret / dax

Cross-platform shell tools for Deno and Node.js inspired by zx.
MIT License
1.05k stars 35 forks source link

Option to echo command before it's run #11

Closed dsherret closed 2 years ago

dsherret commented 2 years ago

For example:

const example = "example";
await $`echo ${example}`.printCommand();

Outputs:

> echo example
example

Not sure about the name though. This is useful for debugging purposes especially. Probably the > should be white and the command text light grey.