Logo
Explore Repositories Help
Sign In
melissa/zsa_qmk_firmware
1
0
Fork 0
You've already forked zsa_qmk_firmware
mirror of https://github.com/zsa/qmk_firmware.git synced 2026-01-15 01:48:34 +00:00
Code Issues Actions Packages Projects Releases Wiki Activity
Files
7e080e7ecd6dff6f06579ce8b1623bc22326e166
zsa_qmk_firmware/lib/python/qmk/cli/hello.py

14 lines
306 B
Python
Raw Normal View History

QMK CLI and JSON keymap support (#6176) * Script to generate keymap.c from JSON file. * Support for keymap.json * Add a warning about the keymap.c getting overwritten. * Fix keymap generating * Install the python deps * Flesh out more of the python environment * Remove defunct json2keymap * Style everything with yapf * Polish up python support * Hide json keymap.c into the .build dir * Polish up qmk-compile-json * Make milc work with positional arguments * Fix a couple small things * Fix some errors and make the CLI more understandable * Make the qmk wrapper more robust * Add basic QMK Doctor * Clean up docstrings and flesh them out as needed * remove unused compile_firmware() function
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.')
@cli.entrypoint('QMK Hello World.')
def main(cli):
"""Log a friendly greeting.
"""
cli.log.info('Hello, %s!', cli.config.general.name)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.7 Page: 684ms Template: 92ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API