summaryrefslogtreecommitdiff
path: root/lib/python/qmk/cli/fileformat.py
blob: 502a3b7b1f7a91472c95924bcbf686f154bbdfe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""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