From d49a079def1a84fb3e25c8bdee50f8a8a1a47e82 Mon Sep 17 00:00:00 2001 From: Marc Siebeneicher Date: Mon, 21 Aug 2023 14:14:09 +0200 Subject: [PATCH] feat(dummy): add dummy app for testing and as example --- .snab.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .snab.yml diff --git a/.snab.yml b/.snab.yml new file mode 100644 index 0000000..7b46334 --- /dev/null +++ b/.snab.yml @@ -0,0 +1,48 @@ +schema_version: '0.2' + +name: dummy +version: '0.1.0' + +description: + short: Example app + long: Example app to provide shell script collection under /usr/local/bin/dummy + example: dummy --help + +tasks: + # simple command + foo: + description: + short: foo script + long: echo awesome foo script name + example: dummy foo [--verbose] + cmds: + - echo "I am foo" + + # command with flag + bar: + description: + short: bar script + flags: + - name: name + shorthand: n + usage: Your name to say hello + value: Max + type: string + cmds: + - echo "Hello {{ .name }}! I am bar." + + # category without own cmds execution + cat: + description: + short: A category to add commands as subcommands + long: Only a category for further subcommands + + # subcommand unter `cat` + foobar: + parent: cat + description: + short: foobar sub command + long: foobar command under cat + example: dummy cat foobar [--verbose] + cmds: + - echo "I am foobar"