Files
zsa_qmk_firmware/lib/python/qmk/cli/hello.py
T

14 lines
358 B
Python
Raw Normal View History

2019-07-15 12:14:27 -07: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.')
2019-11-27 21:27:06 +01:00
@cli.subcommand('QMK Hello World.', hidden=False if cli.config.user.developer else True)
2019-09-22 13:25:33 -07:00
def hello(cli):
2019-07-15 12:14:27 -07:00
"""Log a friendly greeting.
"""
2019-09-22 13:25:33 -07:00
cli.log.info('Hello, %s!', cli.config.hello.name)