Add beautysh formatter (#170)

This commit is contained in:
Mohsin Kaleem 2023-04-22 11:34:12 +01:00 committed by GitHub
parent 0290ae18cc
commit 85a2ab7e5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 0 deletions

View file

@ -22,9 +22,12 @@ The format is based on [Keep a Changelog].
[awk](https://en.wikipedia.org/wiki/AWK) ([#187]). [awk](https://en.wikipedia.org/wiki/AWK) ([#187]).
* [`asmfmt`](https://github.com/klauspost/asmfmt) for assembly ([#168]). * [`asmfmt`](https://github.com/klauspost/asmfmt) for assembly ([#168]).
* [`astyle`](https://github.com/steinwurf/astyle) for C ([#169]). * [`astyle`](https://github.com/steinwurf/astyle) for C ([#169]).
* [`beautysh`](https://github.com/lovesegfault/beautysh) for shell
scripts ([#170])
[#168]: https://github.com/radian-software/apheleia/pull/168 [#168]: https://github.com/radian-software/apheleia/pull/168
[#169]: https://github.com/radian-software/apheleia/pull/169 [#169]: https://github.com/radian-software/apheleia/pull/169
[#170]: https://github.com/radian-software/apheleia/pull/170
[#174]: https://github.com/radian-software/apheleia/pull/174 [#174]: https://github.com/radian-software/apheleia/pull/174
[#182]: https://github.com/radian-software/apheleia/pull/182 [#182]: https://github.com/radian-software/apheleia/pull/182
[#187]: https://github.com/radian-software/apheleia/pull/187 [#187]: https://github.com/radian-software/apheleia/pull/187

View file

@ -36,6 +36,10 @@
"--options" ".astylerc"))) "--options" ".astylerc")))
(asmfmt . ("asmfmt")) (asmfmt . ("asmfmt"))
(bean-format . ("bean-format")) (bean-format . ("bean-format"))
(beautysh . ("beautysh"
(apheleia-formatters-indent
"--tab" "--indent-size" 'sh-basic-offset)
"-"))
(black . ("black" (black . ("black"
(when (apheleia-formatters-extension-p "pyi") "--pyi") (when (apheleia-formatters-extension-p "pyi") "--pyi")
(apheleia-formatters-fill-column "--line-length") (apheleia-formatters-fill-column "--line-length")

View file

@ -0,0 +1,2 @@
apt-get install -y python3-pip
pip3 install beautysh

View file

@ -0,0 +1 @@
../shfmt/in.bash

View file

@ -0,0 +1,2 @@
function f(){
thing;}