diff options
Diffstat (limited to 'lib/python/qmk/cli/fileformat.py')
-rw-r--r-- | lib/python/qmk/cli/fileformat.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/python/qmk/cli/fileformat.py b/lib/python/qmk/cli/fileformat.py new file mode 100644 index 000000000..502a3b7b1 --- /dev/null +++ b/lib/python/qmk/cli/fileformat.py | |||
@@ -0,0 +1,13 @@ | |||
1 | """Format files according to QMK's style. | ||
2 | """ | ||
3 | from milc import cli | ||
4 | |||
5 | import subprocess | ||
6 | |||
7 | |||
8 | @cli.subcommand("Format files according to QMK's style.", hidden=True) | ||
9 | def fileformat(cli): | ||
10 | """Run several general formatting commands. | ||
11 | """ | ||
12 | dos2unix = subprocess.run(['bash', '-c', 'dos2unix **']) | ||
13 | return dos2unix.returncode | ||