Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Latest commit

 

History

History
17 lines (15 loc) · 451 Bytes

note.md

File metadata and controls

17 lines (15 loc) · 451 Bytes

sudo dart compile exe ./bin/buddy.dart -o ./release/buddy_macos

import 'package:process_run/shell_run.dart';budd var controller = ShellLinesController(); var shell = Shell(stdout: controller.sink, verbose: false); controller.stream.listen((event) { // Handle output

// ... // If needed kill the shell shell.kill(); }); try { await shell.run('dart echo.dart some_text'); } on ShellException catch (_) { // We might get a shell exception }