Skip to content

Commit b4427d9

Browse files
committed
Use requiredCommands for goimports and golint
1 parent 859c66a commit b4427d9

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

Commands/Imports.tmCommand

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ Go::goimports
2424
<string>text</string>
2525
<key>outputLocation</key>
2626
<string>replaceDocument</string>
27+
<key>requiredCommands</key>
28+
<array>
29+
<dict>
30+
<key>command</key>
31+
<string>goimports</string>
32+
<key>moreInfoURL</key>
33+
<string>https://github.com/syscrusher/golang.tmbundle</string>
34+
<key>variable</key>
35+
<string>TM_GOIMPORTS</string>
36+
</dict>
37+
</array>
2738
<key>scope</key>
2839
<string>source.go</string>
2940
<key>uuid</key>

Commands/Lint.tmCommand

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ Go::golint
2424
<string>html</string>
2525
<key>outputLocation</key>
2626
<string>newWindow</string>
27+
<key>requiredCommands</key>
28+
<array>
29+
<dict>
30+
<key>command</key>
31+
<string>golint</string>
32+
<key>moreInfoURL</key>
33+
<string>https://github.com/syscrusher/golang.tmbundle</string>
34+
<key>variable</key>
35+
<string>TM_GOLINT</string>
36+
</dict>
37+
</array>
2738
<key>scope</key>
2839
<string>source.go</string>
2940
<key>uuid</key>

0 commit comments

Comments
 (0)