aboutsummaryrefslogtreecommitdiff
path: root/lib/python/qmk/cli/hello.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/qmk/cli/hello.py')
-rwxr-xr-xlib/python/qmk/cli/hello.py13
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
3This is an example QMK CLI script.
4"""
5from milc import cli
6
7
8@cli.argument('-n', '--name', default='World', help='Name to greet.')
9@cli.entrypoint('QMK Hello World.')
10def main(cli):
11 """Log a friendly greeting.
12 """
13 cli.log.info('Hello, %s!', cli.config.general.name)