pipe method

  1. @override
IShellCommandBuilder pipe(
  1. String cmd, [
  2. List<String>? args
])
override

Registers a command to pipe the previous commands result into.

May throw CommandExceptions.

since 2.2.0

Implementation

@override
IShellCommandBuilder pipe(
  String cmd, [
  List<String>? args,
]) {
  return ShellCommandBuilder.__(_shell, [
    ..._commands,
    buildCmdWithArgs(cmd, args),
  ]);
}