Add support for userspace to docker build commands. (#23988)
This commit is contained in:
		
							parent
							
								
									d5e0562a70
								
							
						
					
					
						commit
						03e688e91f
					
				
					 5 changed files with 35 additions and 90 deletions
				
			
		| 
						 | 
				
			
			@ -86,6 +86,7 @@ subcommands = [
 | 
			
		|||
    'qmk.cli.userspace.compile',
 | 
			
		||||
    'qmk.cli.userspace.doctor',
 | 
			
		||||
    'qmk.cli.userspace.list',
 | 
			
		||||
    'qmk.cli.userspace.path',
 | 
			
		||||
    'qmk.cli.userspace.remove',
 | 
			
		||||
    'qmk.cli.via2json',
 | 
			
		||||
]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										8
									
								
								lib/python/qmk/cli/userspace/path.py
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										8
									
								
								lib/python/qmk/cli/userspace/path.py
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,8 @@
 | 
			
		|||
from milc import cli
 | 
			
		||||
from qmk.constants import QMK_USERSPACE
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@cli.subcommand('Detected path to QMK Userspace.', hidden=True)
 | 
			
		||||
def userspace_path(cli):
 | 
			
		||||
    print(QMK_USERSPACE)
 | 
			
		||||
    return
 | 
			
		||||
| 
						 | 
				
			
			@ -249,7 +249,7 @@ def test_c2json_nocpp_stdin():
 | 
			
		|||
def test_clean():
 | 
			
		||||
    result = check_subcommand('clean', '-a')
 | 
			
		||||
    check_returncode(result)
 | 
			
		||||
    assert result.stdout.count('done') == 2
 | 
			
		||||
    assert (result.stdout.count('done') == 2 and 'userspace' not in result.stdout) or (result.stdout.count('done') == 3 and 'userspace' in result.stdout)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def test_generate_api():
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue