diff options
Diffstat (limited to 'lib/python/qmk/cli/clean.py')
-rw-r--r-- | lib/python/qmk/cli/clean.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/python/qmk/cli/clean.py b/lib/python/qmk/cli/clean.py index 9096529fd..72b7ffe81 100644 --- a/lib/python/qmk/cli/clean.py +++ b/lib/python/qmk/cli/clean.py | |||
@@ -1,6 +1,8 @@ | |||
1 | """Clean the QMK firmware folder of build artifacts. | 1 | """Clean the QMK firmware folder of build artifacts. |
2 | """ | 2 | """ |
3 | from qmk.commands import run, create_make_target | 3 | from subprocess import DEVNULL |
4 | |||
5 | from qmk.commands import create_make_target | ||
4 | from milc import cli | 6 | from milc import cli |
5 | 7 | ||
6 | 8 | ||
@@ -9,4 +11,4 @@ from milc import cli | |||
9 | def clean(cli): | 11 | def clean(cli): |
10 | """Runs `make clean` (or `make distclean` if --all is passed) | 12 | """Runs `make clean` (or `make distclean` if --all is passed) |
11 | """ | 13 | """ |
12 | run(create_make_target('distclean' if cli.args.all else 'clean')) | 14 | cli.run(create_make_target('distclean' if cli.args.all else 'clean'), capture_output=False, stdin=DEVNULL) |