summaryrefslogtreecommitdiffstats
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 0000000000..bc0cb6de18
--- /dev/null
+++ b/lib/python/qmk/cli/hello.py
@@ -0,0 +1,13 @@
+"""QMK Python Hello World
+
+This is an example QMK CLI script.
+"""
+from milc import cli
+
+
+@cli.argument('-n', '--name', default='World', help='Name to greet.')
+@cli.entrypoint('QMK Hello World.')
+def main(cli):
+ """Log a friendly greeting.
+ """
+ cli.log.info('Hello, %s!', cli.config.general.name)