From 9703ca45f0472dfed440f373c29206b0b2c8e4db Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 16 Sep 2024 17:02:20 -0400 Subject: Update Shell API to have byte-based mode and by_line() just like files --- stdlib/shell.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'stdlib/shell.h') diff --git a/stdlib/shell.h b/stdlib/shell.h index 48c59abc..16d0b10d 100644 --- a/stdlib/shell.h +++ b/stdlib/shell.h @@ -5,15 +5,20 @@ #include #include -#include "types.h" +#include "arrays.h" #include "datatypes.h" +#include "optionals.h" +#include "text.h" +#include "types.h" #define Shell_t Text_t #define Shell(text) ((Shell_t)Text(text)) #define Shells(...) ((Shell_t)Texts(__VA_ARGS__)) -Text_t Shell$run(Shell_t command, int32_t *status); +OptionalClosure_t Shell$by_line(Shell_t command); Shell_t Shell$escape_text(Text_t text); +OptionalArray_t Shell$run_bytes(Shell_t command); +OptionalText_t Shell$run(Shell_t command); #define Shell$hash Text$hash #define Shell$compare Text$compare -- cgit v1.2.3