Skip to content

Commit

Permalink
removed sink and process as we are replacing these with halfpipe.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsutton committed Apr 27, 2024
1 parent c996731 commit f338adc
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions dcli/lib/src/util/string_as_process.dart
Original file line number Diff line number Diff line change
Expand Up @@ -523,22 +523,22 @@ extension StringAsProcess on String {
.transform(const LineSplitter());
}

/// Experimental - DO NOT USE
Sink<List<int>> get sink {
final lhsRunnable = RunnableProcess.fromCommandLine(this)
..start(
waitForStart: false, progress: Progress.devNull() as ProgressImpl);
return lhsRunnable.sink;
}
// /// Experimental - DO NOT USE
// Sink<List<int>> get sink {
// final lhsRunnable = RunnableProcess.fromCommandLine(this)
// ..start(
// waitForStart: false, progress: Progress.devNull() as ProgressImpl);
// return lhsRunnable.sink;
// }

/// Experimental - DO NOT USE
RunnableProcess get process {
final process = RunnableProcess.fromCommandLine(this)
..start(
waitForStart: false, progress: Progress.devNull() as ProgressImpl);
// /// Experimental - DO NOT USE
// RunnableProcess get process {
// final process = RunnableProcess.fromCommandLine(this)
// ..start(
// waitForStart: false, progress: Progress.devNull() as ProgressImpl);

return process;
} // Treat the [this] as the name of a file and
// return process;
// } // Treat the [this] as the name of a file and

/// Truncates and Writes [line] to the file terminated by [newline].
/// If [newline] is null or isn't passed then the platform
Expand Down

0 comments on commit f338adc

Please sign in to comment.