format code according to conventions [skip ci]
This commit is contained in:
		@@ -38,13 +38,12 @@ def compile(cli):
 | 
			
		||||
        # Generate the keymap
 | 
			
		||||
        keymap_path = qmk.path.keymap(user_keymap['keyboard'])
 | 
			
		||||
        cli.log.info('Creating {fg_cyan}%s{style_reset_all} keymap in {fg_cyan}%s', user_keymap['keymap'], keymap_path)
 | 
			
		||||
        
 | 
			
		||||
 | 
			
		||||
        # Compile the keymap
 | 
			
		||||
        command = compile_configurator_json(cli.args.filename)
 | 
			
		||||
 | 
			
		||||
        cli.log.info('Wrote keymap to {fg_cyan}%s/%s/keymap.c', keymap_path, user_keymap['keymap'])
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    elif cli.config.compile.keyboard and cli.config.compile.keymap:
 | 
			
		||||
        # Generate the make command for a specific keyboard/keymap.
 | 
			
		||||
        command = create_make_command(cli.config.compile.keyboard, cli.config.compile.keymap)
 | 
			
		||||
 
 | 
			
		||||
@@ -32,6 +32,7 @@ def print_bootloader_help():
 | 
			
		||||
    cli.echo('\tst-link-cli')
 | 
			
		||||
    cli.echo('For more info, visit https://docs.qmk.fm/#/flashing')
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@cli.argument('-bl', '--bootloader', default='flash', help='The flash command, corresponding to qmk\'s make options of bootloaders.')
 | 
			
		||||
@cli.argument('filename', nargs='?', arg_only=True, help='The configurator export JSON to compile. Use this if you dont want to specify a keymap and keyboard.')
 | 
			
		||||
@cli.argument('-km', '--keymap', help='The keymap to build a firmware for. Use this if you dont have a configurator file. Ignored when a configurator file is supplied.')
 | 
			
		||||
@@ -84,4 +85,4 @@ def flash(cli):
 | 
			
		||||
        return False
 | 
			
		||||
 | 
			
		||||
    cli.log.info('Flashing keymap with {fg_cyan}%s\n\n', ' '.join(command))
 | 
			
		||||
    subprocess.run(command)
 | 
			
		||||
    subprocess.run(command)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user