Skip to content

Commit

Permalink
feat: add binaryStream to ShellLinesController
Browse files Browse the repository at this point in the history
  • Loading branch information
alextekartik committed Oct 9, 2024
1 parent 2437100 commit c48ffe2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/process_run/lib/src/lines_utils_common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import 'package:process_run/src/shell_utils_common.dart';

import 'common/import.dart';

/// Basic shell lines controller.
/// Basic bi-directionnal shell lines controller.
///
/// Use either sink for stdout/stderr or binaryStream for stdin
///
/// Usage:
/// ```dart
Expand Down Expand Up @@ -56,6 +58,9 @@ class ShellLinesController {
/// True if the controller is closed.
bool get isClosed => _controller.isClosed;

/// The binary stream to listen to, that can be passed to stdin
Stream<List<int>> get binaryStream => _controller.stream;

/// Dispose the controller.
void close() {
_controller.close();
Expand Down

0 comments on commit c48ffe2

Please sign in to comment.