adds go fmt to do.sh commands and makes indents friendlier spaced
This commit is contained in:
parent
c0d5a543f0
commit
7ae7f294da
11
do.sh
11
do.sh
@ -11,11 +11,18 @@ build() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test() {
|
test() {
|
||||||
|
echo "I am ${FUNCNAME[0]}ing"
|
||||||
_lint && _vet && _test
|
_lint && _vet && _test
|
||||||
}
|
}
|
||||||
|
|
||||||
run() {
|
run() {
|
||||||
test && go run main.go
|
echo "I am ${FUNCNAME[0]}ing"
|
||||||
|
fmt && test && go run main.go
|
||||||
|
}
|
||||||
|
|
||||||
|
fmt() {
|
||||||
|
echo "I am ${FUNCNAME[0]}ing"
|
||||||
|
go fmt ./...
|
||||||
}
|
}
|
||||||
|
|
||||||
_test() {
|
_test() {
|
||||||
@ -35,7 +42,7 @@ _vet() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
all() {
|
all() {
|
||||||
test && build
|
fmt && test && build
|
||||||
}
|
}
|
||||||
|
|
||||||
"$@" # <- execute the task
|
"$@" # <- execute the task
|
||||||
|
Loading…
x
Reference in New Issue
Block a user