mirror of
https://github.com/luzifer/vim.git
synced 2024-12-20 18:31:20 +00:00
11 lines
172 B
Text
11 lines
172 B
Text
|
#!/bin/bash
|
||
|
set -euxo pipefail
|
||
|
|
||
|
[ ${DEBUG:-0} -eq 1 ] && exec 2>/tmp/gofmtimport.dbg
|
||
|
|
||
|
goimports \
|
||
|
-srcdir "$2" \
|
||
|
-local "${GOIMPORT_LOCAL:-}" \
|
||
|
-w "$2"
|
||
|
gofmt -s -w "$2"
|