mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-11-04 07:12:33 +01:00 
			
		
		
		
	* Use pathlib everywhere we can * Improvements based on @erovia's feedback * rework qmk compile and qmk flash to use pathlib * style * Remove the subcommand_name argument from find_keyboard_keymap() * add experimental decorators * Create decorators for finding keyboard and keymap based on current directory. Decorators were inspired by @Erovia's brilliant work on the proof of concept.
		
			
				
	
	
		
			24 lines
		
	
	
		
			636 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			636 B
		
	
	
	
		
			Python
		
	
	
	
	
	
"""QMK CLI Subcommands
 | 
						|
 | 
						|
We list each subcommand here explicitly because all the reliable ways of searching for modules are slow and delay startup.
 | 
						|
"""
 | 
						|
from milc import cli
 | 
						|
 | 
						|
from . import cformat
 | 
						|
from . import compile
 | 
						|
from . import config
 | 
						|
from . import docs
 | 
						|
from . import doctor
 | 
						|
from . import flash
 | 
						|
from . import hello
 | 
						|
from . import json
 | 
						|
from . import json2c
 | 
						|
from . import list
 | 
						|
from . import kle2json
 | 
						|
from . import new
 | 
						|
from . import pyformat
 | 
						|
from . import pytest
 | 
						|
 | 
						|
if not hasattr(cli, 'config_source'):
 | 
						|
    cli.log.warning("Your QMK CLI is out of date. Please upgrade with `pip3 install --upgrade qmk` or by using your package manager.")
 |