3 homepage: https://github.com/mvdan/sh
5 shfmt: Format shell programs
8 To update or switch versions, run `webi shfmt@stable` or `webi shfmt@beta`, etc.
12 > shfmt is a shell parser, formatter and interpretter that supports POSIX Shell,
15 Usage: `shfmt <flags> <filepath>`
17 Note: If given path is directory, all shell scripts in the directory will be
20 ### Frequently used flags:
24 Show version and exit.
27 List files whose formatting differs from shfmt's.
30 Write result to file instead of stdout.
33 Error with a diff when the formatting differs.
39 Recursively find all shell files and print the paths.
44 To list files being formatted and write directly to file
47 shfmt -l -w <filepath>
50 To show differences between shfmt formatting and original file formatting
56 See https://github.com/mvdan/sh for more info.