-
Notifications
You must be signed in to change notification settings - Fork 87
Closed
Description
As part of #32 we've talked about adding a new public API for streaming output.
One suggestion would be:
public func shellOut(to command: String,
arguments: [String] = [],
at path: String = ".",
output: (String) -> Void) throws {
...
}
/// Usage
shellOut(to: "docker build") { output in
/// This block will be called multiple times
print(output)
}We'd have to check if the output closure would need to be escaping or not. Ideally it wouldn't need to be, but I'm not sure if that is achievable.
What do other people think?
Metadata
Metadata
Assignees
Labels
No labels