shell-formatter
Shell Formatter
Usage
docker run --rm -v $PWD:/mnt -w /mnt mvdan/shfmt {ARGS...}docker run --rm -v $PWD:/mnt -w /mnt mvdan/shfmt -w .Last updated
We can format our shell scripts by using shfmt
docker run --rm -v $PWD:/mnt -w /mnt mvdan/shfmt {ARGS...}Example
docker run --rm -v $PWD:/mnt -w /mnt mvdan/shfmt -w .This will run shfmt and write changes to all the files in current directory
Reference(s)
Last updated