CLI command to format C code
This commit is contained in:
		
							parent
							
								
									d076234fd1
								
							
						
					
					
						commit
						9547774962
					
				
					 2 changed files with 37 additions and 0 deletions
				
			
		
							
								
								
									
										10
									
								
								docs/cli.md
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								docs/cli.md
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -36,3 +36,13 @@ qmk compile <configuratorExport.json>
 | 
			
		|||
```
 | 
			
		||||
qmk compile -kb <keyboard_name> -km <keymap_name>
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## `qmk cformat`
 | 
			
		||||
 | 
			
		||||
This command formats C code using clang-format. Run it with no arguments to format all core code, or pass filenames on the command line to run it on specific files.
 | 
			
		||||
 | 
			
		||||
**Usage**:
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
qmk cformat [file1] [file2] [...] [fileN]
 | 
			
		||||
```
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue