diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-16 17:02:20 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-16 17:02:20 -0400 |
| commit | 9703ca45f0472dfed440f373c29206b0b2c8e4db (patch) | |
| tree | 0ea5f11d0bd59f2b7d36623a6e510c460317feac /stdlib/shell.h | |
| parent | 32c139e1f468864ce23bc091d9db309b1206c872 (diff) | |
Update Shell API to have byte-based mode and by_line() just like files
Diffstat (limited to 'stdlib/shell.h')
| -rw-r--r-- | stdlib/shell.h | 9 |
1 files changed, 7 insertions, 2 deletions
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 <stdbool.h> #include <stdint.h> -#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 |
