-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dummy): add dummy app for testing and as example
- Loading branch information
Marc Siebeneicher
committed
Aug 21, 2023
1 parent
7612109
commit d49a079
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |