This repository was archived by the owner on Dec 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Use duct internally?ย #32
Copy link
Copy link
Open
Labels
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
shfn. 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
oconnor663