This repository was archived by the owner on Dec 29, 2021. It is now read-only.
Use duct internally? #32
Open
Description
I just saw this announcement of duct, which seems to handle a bunch of weird edge cases in relation to std::process::Command
.
It looks like we can use it to:
- Define commands as strings using its
sh
fn. Internally it actually calls/bin/sh
/cmd.exe
, so it doesn't have to do crazy string splitting (it also has a macro). Deprecate macro in favor of cleverAssert::command(&str)
? #25 - Set working dir Setting command working directory #28
- Set env vars Setting environment variables #27
- pipe stuff into other commands 😮
- Pipe stuff (bytes) into the program Piping (stdin) to the process #26
I really like our fluent API, and would suggest adding methods that internally handle duct::Expression
.
cc @nathanross @colin-kiegel @epage who are the authors of the linked issues
cc @oconnor663 who is the author of duct