summaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-05-02 15:59:41 +0000
committerQMK Bot <hello@qmk.fm>2021-05-02 15:59:41 +0000
commit0ec438289d8d0103a5fd1a6698c95716466ed9d3 (patch)
treeaa255e6b048df2d72675f2b18de5a631047a72e9 /lib/python
parent79e86adfb6cd94041c7e8db7e75e1ee8648ce2fd (diff)
parent25c97e0019aff7c529b09d177f23fd1271a120dc (diff)
downloadqmk_firmware-0ec438289d8d0103a5fd1a6698c95716466ed9d3.tar.gz
qmk_firmware-0ec438289d8d0103a5fd1a6698c95716466ed9d3.zip
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/qmk/cli/new/__init__.py1
-rw-r--r--lib/python/qmk/cli/new/keyboard.py11
2 files changed, 12 insertions, 0 deletions
diff --git a/lib/python/qmk/cli/new/__init__.py b/lib/python/qmk/cli/new/__init__.py
index c6a26939b8..fe5d6fe483 100644
--- a/lib/python/qmk/cli/new/__init__.py
+++ b/lib/python/qmk/cli/new/__init__.py
@@ -1 +1,2 @@
+from . import keyboard
from . import keymap
diff --git a/lib/python/qmk/cli/new/keyboard.py b/lib/python/qmk/cli/new/keyboard.py
new file mode 100644
index 0000000000..cab0198fb7
--- /dev/null
+++ b/lib/python/qmk/cli/new/keyboard.py
@@ -0,0 +1,11 @@
+"""This script automates the creation of keyboards.
+"""
+from milc import cli
+
+
+@cli.subcommand('Creates a new keyboard')
+def new_keyboard(cli):
+ """Creates a new keyboard
+ """
+ # TODO: replace this bodge to the existing script
+ cli.run(['util/new_keyboard.sh'], capture_output=False)