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:
		@@ -6,7 +6,7 @@ from milc import cli
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@cli.argument('-n', '--name', default='World', help='Name to greet.')
 | 
			
		||||
@cli.subcommand('QMK Hello World.')
 | 
			
		||||
@cli.subcommand('QMK Hello World.', hidden=False if cli.config.user.developer else True)
 | 
			
		||||
def hello(cli):
 | 
			
		||||
    """Log a friendly greeting.
 | 
			
		||||
    """
 | 
			
		||||
 
 | 
			
		||||
@@ -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.
 | 
			
		||||
    """
 | 
			
		||||
 
 | 
			
		||||
@@ -7,7 +7,7 @@ import subprocess
 | 
			
		||||
from milc import cli
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@cli.subcommand('QMK Python Unit Tests')
 | 
			
		||||
@cli.subcommand('QMK Python Unit Tests', hidden=False if cli.config.user.developer else True)
 | 
			
		||||
def pytest(cli):
 | 
			
		||||
    """Run several linting/testing commands.
 | 
			
		||||
    """
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user