diff options
Diffstat (limited to 'lib/python/qmk/cli/hello.py')
-rwxr-xr-x | lib/python/qmk/cli/hello.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/python/qmk/cli/hello.py b/lib/python/qmk/cli/hello.py new file mode 100755 index 000000000..bc0cb6de1 --- /dev/null +++ b/lib/python/qmk/cli/hello.py | |||
@@ -0,0 +1,13 @@ | |||
1 | """QMK Python Hello World | ||
2 | |||
3 | This is an example QMK CLI script. | ||
4 | """ | ||
5 | from milc import cli | ||
6 | |||
7 | |||
8 | @cli.argument('-n', '--name', default='World', help='Name to greet.') | ||
9 | @cli.entrypoint('QMK Hello World.') | ||
10 | def main(cli): | ||
11 | """Log a friendly greeting. | ||
12 | """ | ||
13 | cli.log.info('Hello, %s!', cli.config.general.name) | ||