CLI: Add development mode support
Hide development specific options and don't require dev modules unless `user.developer` is set to `True`.
This commit is contained in:
parent
ea7e40bae1
commit
c61f016fa4
8 changed files with 302 additions and 25 deletions
|
@ -5,7 +5,7 @@ from milc import cli
|
|||
import subprocess
|
||||
|
||||
|
||||
@cli.subcommand("Format python code according to QMK's style.")
|
||||
@cli.subcommand("Format python code according to QMK's style.", hidden=False if cli.config.user.developer else True)
|
||||
def pyformat(cli):
|
||||
"""Format python code according to QMK's style.
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue