diff --git a/astro.config.mjs b/astro.config.mjs index dc1e3d8..1abf108 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -225,6 +225,11 @@ export default defineConfig({ collapsed: true, items: [{ autogenerate: { directory: "processors/module" } }], }, + { + label: "OS", + collapsed: true, + items: [{ autogenerate: { directory: "processors/os" } }], + }, { label: "OSC", collapsed: true, diff --git a/src/content/docs/processors/os/exec.mdx b/src/content/docs/processors/os/exec.mdx new file mode 100644 index 0000000..f79cbb6 --- /dev/null +++ b/src/content/docs/processors/os/exec.mdx @@ -0,0 +1,23 @@ +--- +title: Execute Command +sidebar: + label: Exec + order: 1 +--- +import SchemaInfo from '../../../../components/SchemaInfo.astro'; + +This processor will execute a command with the provided arguments. This processor will return an error if any of the required parameters are missing or if the parameters are of the wrong type. The command parameter is required, while the args parameter is optional. + + + +### Example + +Run `echo` command. + +```yaml +- id: create + type: os.exec + params: + command: "echo" + args: ["hello"] +```