mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 07:44:02 +03:00
Add task for formatting source code
This commit is contained in:
+6
-1
@@ -1,6 +1,5 @@
|
|||||||
[tools]
|
[tools]
|
||||||
go = "latest"
|
go = "latest"
|
||||||
gofumpt = "latest"
|
|
||||||
|
|
||||||
[tasks.build]
|
[tasks.build]
|
||||||
description = "Build binary"
|
description = "Build binary"
|
||||||
@@ -38,3 +37,9 @@ run = [
|
|||||||
description = "Run doc server"
|
description = "Run doc server"
|
||||||
tools."go:golang.org/x/pkgsite/cmd/pkgsite" = "latest"
|
tools."go:golang.org/x/pkgsite/cmd/pkgsite" = "latest"
|
||||||
run = "pkgsite -http 0.0.0.0:10000"
|
run = "pkgsite -http 0.0.0.0:10000"
|
||||||
|
|
||||||
|
[tasks.fmt]
|
||||||
|
description = "Reformat source code"
|
||||||
|
tools.gofumpt = "latest"
|
||||||
|
sources = ["**/*.go"]
|
||||||
|
run = "gofumpt -w --extra ."
|
||||||
|
|||||||
Reference in New Issue
Block a user