mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-11 12:45:33 +06:00
14 lines
328 B
Python
14 lines
328 B
Python
|
"""Format files according to QMK's style.
|
||
|
"""
|
||
|
from milc import cli
|
||
|
|
||
|
import subprocess
|
||
|
|
||
|
|
||
|
@cli.subcommand("Format files according to QMK's style.", hidden=True)
|
||
|
def fileformat(cli):
|
||
|
"""Run several general formatting commands.
|
||
|
"""
|
||
|
dos2unix = subprocess.run(['bash', '-c', 'dos2unix **'])
|
||
|
return dos2unix.returncode
|