From d7443d7810d6b5a2d02b363892ee0ed8399d2a00 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sun, 24 May 2026 20:22:48 +0100 Subject: [PATCH] bshell: add an assembly instance to register builtin commands --- bshell/assembly.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 bshell/assembly.c diff --git a/bshell/assembly.c b/bshell/assembly.c new file mode 100644 index 0000000..34094fc --- /dev/null +++ b/bshell/assembly.c @@ -0,0 +1,24 @@ +#include +#include + +FX_ASSEMBLY_BEGIN(bshell) + FX_ASSEMBLY_NAME("bshell"); + FX_ASSEMBLY_VERSION(0, 1, 0, 0); + FX_ASSEMBLY_EXPORT_TYPE("bshell", "cmdlet", bshell_cmdlet); + FX_ASSEMBLY_EXPORT_TYPE("bshell", "scriptblock", bshell_scriptblock); + FX_ASSEMBLY_EXPORT_TYPE("bshell.core", "get_verb", bshell_get_verb); + FX_ASSEMBLY_EXPORT_TYPE( + "bshell.core", + "write_output", + bshell_write_output); + FX_ASSEMBLY_EXPORT_TYPE( + "bshell.core", + "foreach_object", + bshell_foreach_object); + FX_ASSEMBLY_EXPORT_TYPE( + "bshell.core", + "get_command", + bshell_get_command); + FX_ASSEMBLY_EXPORT_TYPE("bshell.core", "percent", bshell_percent); + FX_ASSEMBLY_EXPORT_TYPE("bshell.core", "echo", bshell_echo); +FX_ASSEMBLY_END(bshell)