mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-11 02:59:09 +00:00
14 lines
306 B
Python
14 lines
306 B
Python
|
"""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)
|