2020-12-10 18:01:51 +01:00
|
|
|
"""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.
|
|
|
|
"""
|
2020-12-24 03:36:44 +01:00
|
|
|
dos2unix = subprocess.run(['bash', '-c', 'git ls-files -z | xargs -0 dos2unix'], stdout=subprocess.DEVNULL)
|
2020-12-10 18:01:51 +01:00
|
|
|
return dos2unix.returncode
|