forked from mirrors/qmk_userspace
CLI/Docs: Fix the format commands' name (#13668)
PR #13296 changed the name of the `cformat` and `pyformat` commands to `format-c` and `format-py` respectively. This PR updates the documentation and some parts of the CLI to use the new names. Also add documentation for the new `format-text` subcommand, introduced in the same PR.
This commit is contained in:
parent
164a74a078
commit
fdcea06336
9 changed files with 50 additions and 39 deletions
12
.github/workflows/format.yaml
vendored
12
.github/workflows/format.yaml
vendored
|
@ -31,12 +31,12 @@ jobs:
|
|||
output: ' '
|
||||
fileOutput: ' '
|
||||
|
||||
- name: Run qmk cformat and qmk pyformat
|
||||
- name: Run qmk format-c and qmk format-python
|
||||
shell: 'bash {0}'
|
||||
run: |
|
||||
qmk cformat --core-only -n $(< ~/files.txt)
|
||||
cformat_exit=$?
|
||||
qmk pyformat -n
|
||||
pyformat_exit=$?
|
||||
qmk format-c --core-only -n $(< ~/files.txt)
|
||||
format_c_exit=$?
|
||||
qmk format-python -n
|
||||
format_python_exit=$?
|
||||
|
||||
exit $((cformat_exit + pyformat_exit))
|
||||
exit $((format_c_exit + format_python_exit))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue