forked from mfulz_github/qmk_firmware
		
	Hide development specific options and don't require dev modules unless `user.developer` is set to `True`.
		
			
				
	
	
		
			14 lines
		
	
	
		
			358 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			358 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
"""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.subcommand('QMK Hello World.', hidden=False if cli.config.user.developer else True)
 | 
						|
def hello(cli):
 | 
						|
    """Log a friendly greeting.
 | 
						|
    """
 | 
						|
    cli.log.info('Hello, %s!', cli.config.hello.name)
 |