Releases: dsherret/dax
Releases · dsherret/dax
0.18.1
0.18.0
What's Changed
Progress bars and a new prompt/selection API.
- feat: add prompt/selection API by @dsherret in #45
- feat: add pwd command by @sigmaSd in #43
- feat: progress bars by @dsherret in #46
- feat: add
formData
method to requests by @dsherret in #49 - feat: ability to easily show a progress bar with
$.request
by @dsherret in #51 - feat: ability to format value in progress bars as bytes by @dsherret in #52
Full Changelog: 0.17.0...0.18.0
0.17.0
0.16.0
0.15.0
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
0.14.0
0.13.0
- 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
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
Stdout and stderr are now inherited by default.
There are several reasons for doing this:
- It's more efficient.
- I find myself writing a lot of commands without needing to capture the majority of the time.
- There are now helper methods like
const text = await `some_command`.text()
, which will automatically capture when necessary and people should prefer using those. - 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 });