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.

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