From 4b352f89a309dd2405f782062476202829beee37 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 6 Sep 2024 11:37:33 -0400 Subject: Add Shell dsl type --- builtins/shell.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 builtins/shell.h (limited to 'builtins/shell.h') diff --git a/builtins/shell.h b/builtins/shell.h new file mode 100644 index 00000000..0429d496 --- /dev/null +++ b/builtins/shell.h @@ -0,0 +1,22 @@ +#pragma once + +// A lang for Shell Command Language + +#include +#include +#include + +#include "types.h" +#include "datatypes.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); +Shell_t Shell$escape_text(Text_t text); + +extern const TypeInfo Shell$info; + +// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 + -- cgit v1.2.3