turbo-editors/turbo-gopublic Fork 0
main
Commits
Clone
git clone https://git.rickub.com/turbo-editors/turbo-go.git
git clone ssh://git@rickub.com/turbo-editors/turbo-go.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

📦 Turbo Go 3d7798b · on main · k33g · 11h ago
tools.toml · 64 lines · 1.8 KBTOML Blame HistoryRaw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# turbo-go tools.
#
# Each [[tool]] becomes one line of the Go menu, in the order they appear here.
# name is what the menu shows; a letter between tildes is its hot key, and no
# two tools should claim the same one.
#
# command goes to "sh -c", so pipes, globs and && work: one entry can be a
# whole sequence.
#
# menu says which menu it appears in. Leave it out and the tool goes into the Go
# menu; name anything else and that menu is created for you, in the order the
# names first appear here. A tool that has nothing to do with Go belongs in one
# of your own:
#
#   [[tool]]
#   name = "~E~cho"
#   command = "echo TADA"
#   menu = "Tools"
#
# output says where what the command prints goes:
#   popup     a dialog that fills in as it runs, and says the exit code (default)
#   terminal  a terminal window, for anything that reads the keyboard or runs long
#   editor    an editing window once it has finished, to search with Ctrl-F
#
# Commands run in the directory the editor was started in, which is why ./...
# means the whole module when you start from the project root.

[[tool]]
name = "~F~ormat"
command = "gofmt -l -w ."
output = "popup"

[[tool]]
name = "~L~int"
command = "go vet ./..."
output = "popup"

[[tool]]
name = "~B~uild"
command = "go build ./..."
output = "popup"

[[tool]]
name = "~T~est"
command = "go test ./..."
output = "popup"

[[tool]]
name = "~R~un"
command = "go run ."
# A terminal, not a popup: a program that reads the keyboard has to be able to
# be answered, and one that runs long has to be able to be interrupted.
output = "terminal"

# A tool that has nothing to do with Go, in a menu of its own. This one puts a
# "Tools" menu on the bar, on Alt-T, between Go and Help.
[[tool]]
name = "~E~cho"
command = """
echo 'TADA'
echo 'QWERTY'
"""
output = "terminal"
menu = "Tools"