Skip to content

Releases: dsherret/dax

0.18.1

29 Dec 03:45
3e39a62
Compare
Choose a tag to compare

What's Changed

  • fix: progress bars should not conflict with inherited command pipes by @dsherret in #53

Full Changelog: 0.18.0...0.18.1

0.18.0

29 Dec 02:09
399b790
Compare
Choose a tag to compare

What's Changed

Progress bars and a new prompt/selection API.

Full Changelog: 0.17.0...0.18.0

0.17.0

07 Dec 23:15
760f04d
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.16.0...0.17.0

0.16.0

03 Dec 00:51
834dd51
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.15.0...0.16.0

0.15.0

19 Oct 01:11
be49716
Compare
Choose a tag to compare

What's Changed

  • feat: add $.setPrintCommand(true) to mutate print command configuration for a $ #23
  • fix: evaluate real environment on each command execution rather than once on startup #24
  • feat: upgrade deno_std to 0.160.0 #25

Full Changelog: 0.14.1...0.15.0

0.14.1

15 Oct 13:43
Compare
Choose a tag to compare

What's Changed

  • Improved documentation

Full Changelog: 0.14.0...0.14.1

0.14.0

14 Oct 12:50
Compare
Choose a tag to compare
  • feat: ability to set loggers and build $ from another $
  • feat: add $.raw
  • feat: support providing an array of expressions to template literal mapping the array elements to arguments (#20)

0.13.0

30 Sep 19:09
Compare
Choose a tag to compare
  • feat: accept file URL for Command#cwd
  • feat: upgrade deno_std to 0.158.0

Full Changelog: 0.12.0...0.13.0

0.12.0

14 Sep 14:35
Compare
Choose a tag to compare

Adds CommandResult#combined for getting the interleaved stdout and stderr.

For example:

const result = await $`some_command`.stdout("pipe").stderr("pipe");
console.log(result.combined);

Full Changelog: 0.11.0...0.12.0

0.11.0

28 Aug 17:35
c3feef8
Compare
Choose a tag to compare

Stdout and stderr are now inherited by default.

There are several reasons for doing this:

  1. It's more efficient.
  2. I find myself writing a lot of commands without needing to capture the majority of the time.
  3. There are now helper methods like const text = await `some_command`.text(), which will automatically capture when necessary and people should prefer using those.
  4. Helps keep stdout and stderr printed in order (#17)

Note especially point 3. You should be using the .text(), .json(), .lines() methods which will automatically configure the command to capture. If you need more similar helper methods then please open an issue.

Old Default

If you want the old default, you can use the command builder to create a custom $ like so and set stdout and stderr to "inheritPiped", which will inherit and pipe at the same time:

import {
  build$,
  CommandBuilder,
} from "...";

const commandBuilder = new CommandBuilder()
  .stdout("inheritPiped")
  .stderr("inheritPiped");
  
const $ = build$({ commandBuilder });