QMK/lib/python/qmk/cli/hello.py

14 lines
305 B
Python
Raw Normal View History

2020-03-23 10:48:11 +01:00
"""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.subcommand('QMK Hello World.')
def hello(cli):
"""Log a friendly greeting.
"""
cli.log.info('Hello, %s!', cli.config.hello.name)