Releases: dsherret/dax
Releases · dsherret/dax
0.10.0
$.logIndent(...)
is deprecated and replaced with a new $.logGroup
that works similarly to console.group
and console.groupEnd
. You can still provide just a function though as it handles de-indenting for you when errors are thrown.
// log indented within (handles de-indenting when an error is thrown)
await $.logGroup(async () => {
$.log("This will be indented.");
await $.logGroup(async () => {
$.log("This will indented even more.");
// do maybe async stuff here
});
});
// or use $.logGroup with $.logGroupEnd
$.logGroup();
$.log("Indented 1");
$.logGroup("Level 2");
$.log("Indented 2");
$.logGroupEnd();
$.logGroupEnd();
0.9.0
- feat: add
.printCommand()
for outputting a command's text before running the command
For example:
const text = "example";
await $`echo ${text}`.printCommand();
Outputs:
> echo example
example
Instead of just:
example
Full Changelog: 0.8.0...0.9.0
0.8.0
What's Changed
- fix: support absolute paths in
cd
command by @pocketken in #5 - feat:
exit
command by @pocketken in #4 - feat: add
test
command by @pocketken in #6 - fix(GH-9): close subprocess stdin after write by @pocketken in #10
- feat: support for custom commands by @pocketken in #8
New Contributors
- @pocketken made their first contribution in #5
Full Changelog: 0.7.1...0.8.0