/// <summary> /// Creates a new command that pipes its standard output line-by-line to the specified delegate. /// Uses <see cref="Console.OutputEncoding"/> to decode the byte stream. /// </summary> public static Command operator |(Command source, Func <string, Task> target) => source | PipeTarget.ToDelegate(target);
/// <summary> /// Creates a new command that pipes its standard output line-by-line to the specified delegate. /// Uses <see cref="Console.OutputEncoding"/> to decode the byte stream. /// </summary> public static Command operator |(Command source, Action <string> target) => source | PipeTarget.ToDelegate(target);