summaryrefslogtreecommitdiff
path: root/lib/python/qmk/cli/fileformat.py
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2020-12-10 17:02:28 +0000
committerQMK Bot <hello@qmk.fm>2020-12-10 17:02:28 +0000
commitf77f715aa2215ae08920f8c2929c3b181657456d (patch)
treed018f8ed0cfcce14c7b7f30e8a1243cc3a8af262 /lib/python/qmk/cli/fileformat.py
parent15373c8367df04248cdf1f1eb80d08109ca62b85 (diff)
parent6c4b6531fe8fed46bec54fae993a1bab8246dd7d (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'lib/python/qmk/cli/fileformat.py')
-rw-r--r--lib/python/qmk/cli/fileformat.py13
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 0000000000..502a3b7b1f
--- /dev/null
+++ b/lib/python/qmk/cli/fileformat.py
@@ -0,0 +1,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