mirror of
https://github.com/vale981/apheleia
synced 2025-03-04 17:11:40 -05:00
Add beautysh formatter (#170)
This commit is contained in:
parent
0290ae18cc
commit
85a2ab7e5e
5 changed files with 12 additions and 0 deletions
|
@ -22,9 +22,12 @@ The format is based on [Keep a Changelog].
|
|||
[awk](https://en.wikipedia.org/wiki/AWK) ([#187]).
|
||||
* [`asmfmt`](https://github.com/klauspost/asmfmt) for assembly ([#168]).
|
||||
* [`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
|
||||
[#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
|
||||
[#182]: https://github.com/radian-software/apheleia/pull/182
|
||||
[#187]: https://github.com/radian-software/apheleia/pull/187
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
"--options" ".astylerc")))
|
||||
(asmfmt . ("asmfmt"))
|
||||
(bean-format . ("bean-format"))
|
||||
(beautysh . ("beautysh"
|
||||
(apheleia-formatters-indent
|
||||
"--tab" "--indent-size" 'sh-basic-offset)
|
||||
"-"))
|
||||
(black . ("black"
|
||||
(when (apheleia-formatters-extension-p "pyi") "--pyi")
|
||||
(apheleia-formatters-fill-column "--line-length")
|
||||
|
|
2
test/formatters/installers/beautysh.bash
Normal file
2
test/formatters/installers/beautysh.bash
Normal file
|
@ -0,0 +1,2 @@
|
|||
apt-get install -y python3-pip
|
||||
pip3 install beautysh
|
1
test/formatters/samplecode/beautysh/in.bash
Symbolic link
1
test/formatters/samplecode/beautysh/in.bash
Symbolic link
|
@ -0,0 +1 @@
|
|||
../shfmt/in.bash
|
2
test/formatters/samplecode/beautysh/out.bash
Normal file
2
test/formatters/samplecode/beautysh/out.bash
Normal file
|
@ -0,0 +1,2 @@
|
|||
function f(){
|
||||
thing;}
|
Loading…
Add table
Reference in a new issue