File: fmt

package info (click to toggle)
golang-github-willabides-kongplete 0.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 160 kB
  • sloc: sh: 40; makefile: 2
file content (14 lines) | stat: -rwxr-xr-x 302 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
#/ script/fmt formats go code and shell scripts.

set -e

CDPATH="" cd -- "$(dirname -- "$0")/.."

script/bindown -q install gofumpt shfmt handcrafted

git ls-files -o -c --exclude-standard '*.go' |
  bin/handcrafted |
  xargs bin/gofumpt -w -extra

bin/shfmt -ci -i 2 -ci -sr -w -s ./script