| 🛟 Updated. cd4c4c7 k33g 14h ago | 1 | # turbo-go tools. |
| 2 | |
| 3 | [[tool]] |
| 4 | name = "~F~ormat" |
| 5 | command = "gofmt -l -w ." |
| 6 | output = "popup" |
| 7 | |
| 8 | [[tool]] |
| 9 | name = "~L~int" |
| 10 | command = "go vet ./..." |
| 11 | output = "popup" |
| 12 | |
| 13 | [[tool]] |
| 14 | name = "~B~uild" |
| 15 | command = "go build ./..." |
| 16 | output = "popup" |
| 17 | |
| 18 | [[tool]] |
| 19 | name = "~T~est" |
| 20 | command = "go test ./..." |
| 21 | output = "popup" |
| 22 | |
| 23 | [[tool]] |
| 24 | name = "~R~un" |
| 25 | command = "go run ." |
| 26 | # A terminal, not a popup: a program that reads the keyboard has to be able to be answered, |
| 27 | # and one that runs long has to be able to be interrupted. |
| 28 | output = "terminal" |
| 29 | |
| 30 | # A tool that asks for a value: {{double braces}} opens a box before it runs, |
| 31 | # and what you type is shell-quoted, so a name with a space stays one argument. |
| 32 | [[tool]] |
| 33 | name = "~G~rep" |
| 34 | command = "grep -rn {{pattern}} --include='*.go' ." |
| 35 | output = "editor" |
| 36 | |
| 37 | [[tool]] |
| 38 | name = "~I~nit module" |
| 39 | command = "go mod init {{module path}}" |
| 40 | output = "popup" |
| 41 | |
| 42 | # A tool naming a `menu` gets a menu of its own on the bar. |
| 43 | [[tool]] |
| 44 | name = "~E~cho" |
| 45 | command = "echo 🎉 tada!" |
| 46 | menu = "Tools" |
| 47 | output = "terminal" |