Skip to content

Commit

Permalink
feat(dummy): add dummy app for testing and as example
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Siebeneicher committed Aug 21, 2023
1 parent 7612109 commit d49a079
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .snab.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit d49a079

Please sign in to comment.