mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 11:44:02 +03:00
Add task for formatting source code
This commit is contained in:
+6
-1
@@ -1,6 +1,5 @@
|
||||
[tools]
|
||||
go = "latest"
|
||||
gofumpt = "latest"
|
||||
|
||||
[tasks.build]
|
||||
description = "Build binary"
|
||||
@@ -38,3 +37,9 @@ run = [
|
||||
description = "Run doc server"
|
||||
tools."go:golang.org/x/pkgsite/cmd/pkgsite" = "latest"
|
||||
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