Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Start using requiredCommands to locate go.

  • Loading branch information...
commit 1f69fb08bc84267ecb7b75725ddebe5a879d8bea 1 parent ca55b4c
@infininight infininight authored
View
15 Commands/Compile.tmCommand
@@ -24,6 +24,21 @@ Go::go "build", :verb => "Compiling"
<string>html</string>
<key>outputLocation</key>
<string>newWindow</string>
+ <key>requiredCommands</key>
+ <array>
+ <dict>
+ <key>command</key>
+ <string>go</string>
+ <key>locations</key>
+ <array>
+ <string>/opt/local/bin/go</string>
+ <string>/usr/local/bin/go</string>
+ <string>/usr/local/go/bin/go</string>
+ </array>
+ <key>variable</key>
+ <string>TM_GO</string>
+ </dict>
+ </array>
<key>scope</key>
<string>source.go</string>
<key>uuid</key>
View
15 Commands/Documentation for Word : Selection.tmCommand
@@ -26,6 +26,21 @@ Go::godoc
<string>html</string>
<key>outputLocation</key>
<string>toolTip</string>
+ <key>requiredCommands</key>
+ <array>
+ <dict>
+ <key>command</key>
+ <string>godoc</string>
+ <key>locations</key>
+ <array>
+ <string>/opt/local/bin/godoc</string>
+ <string>/usr/local/bin/godoc</string>
+ <string>/usr/local/go/bin/godoc</string>
+ </array>
+ <key>variable</key>
+ <string>TM_GODOC</string>
+ </dict>
+ </array>
<key>scope</key>
<string>source.go</string>
<key>uuid</key>
View
15 Commands/Reformat Document.tmCommand
@@ -24,6 +24,21 @@ Go::gofmt
<string>text</string>
<key>outputLocation</key>
<string>replaceDocument</string>
+ <key>requiredCommands</key>
+ <array>
+ <dict>
+ <key>command</key>
+ <string>gofmt</string>
+ <key>locations</key>
+ <array>
+ <string>/opt/local/bin/gofmt</string>
+ <string>/usr/local/bin/gofmt</string>
+ <string>/usr/local/go/bin/gofmt</string>
+ </array>
+ <key>variable</key>
+ <string>TM_GOFMT</string>
+ </dict>
+ </array>
<key>scope</key>
<string>source.go</string>
<key>uuid</key>
View
15 Commands/Run.tmCommand
@@ -24,6 +24,21 @@ Go::go "run", :verb =&gt; "Running"
<string>html</string>
<key>outputLocation</key>
<string>newWindow</string>
+ <key>requiredCommands</key>
+ <array>
+ <dict>
+ <key>command</key>
+ <string>go</string>
+ <key>locations</key>
+ <array>
+ <string>/opt/local/bin/go</string>
+ <string>/usr/local/bin/go</string>
+ <string>/usr/local/go/bin/go</string>
+ </array>
+ <key>variable</key>
+ <string>TM_GO</string>
+ </dict>
+ </array>
<key>scope</key>
<string>source.go</string>
<key>uuid</key>
View
15 Commands/Test.tmCommand
@@ -24,6 +24,21 @@ Go::go "test", :verb =&gt; "Testing"
<string>html</string>
<key>outputLocation</key>
<string>newWindow</string>
+ <key>requiredCommands</key>
+ <array>
+ <dict>
+ <key>command</key>
+ <string>go</string>
+ <key>locations</key>
+ <array>
+ <string>/opt/local/bin/go</string>
+ <string>/usr/local/bin/go</string>
+ <string>/usr/local/go/bin/go</string>
+ </array>
+ <key>variable</key>
+ <string>TM_GO</string>
+ </dict>
+ </array>
<key>scope</key>
<string>source.go</string>
<key>uuid</key>
View
4 Support/gomate.rb
@@ -5,7 +5,6 @@
require "#{ENV['TM_SUPPORT_PATH']}/lib/ui"
require "#{ENV['TM_SUPPORT_PATH']}/lib/web_preview"
require "#{ENV['TM_SUPPORT_PATH']}/lib/tm/executor"
-require "#{ENV['TM_SUPPORT_PATH']}/lib/tm/require_cmd"
require "#{ENV['TM_SUPPORT_PATH']}/lib/tm/save_current_document"
require "#{ENV['TM_BUNDLE_SUPPORT']}/goerrs"
@@ -17,7 +16,6 @@ module Go
def Go::go(command, options={})
# TextMate's special TM_GO or expect 'go' on PATH
go_cmd = ENV['TM_GO'] || 'go'
- TextMate.require_cmd(go_cmd)
TextMate.save_current_document('go')
TextMate::Executor.make_project_master_current_document
@@ -39,7 +37,6 @@ def Go::godoc
# TextMate's special TM_GODOC or expect 'godoc' on PATH
godoc_cmd = ENV['TM_GODOC'] || 'godoc'
term = STDIN.read.strip
- TextMate.require_cmd(godoc_cmd)
TextMate.save_current_document('go')
TextMate::Executor.make_project_master_current_document
@@ -73,7 +70,6 @@ def Go::godoc
def Go::gofmt
# TextMate's special TM_GOFMT or expect 'gofmt' on PATH
gofmt_cmd = ENV['TM_GOFMT'] || 'gofmt'
- TextMate.require_cmd(gofmt_cmd)
TextMate.save_current_document('go')
TextMate::Executor.make_project_master_current_document
Please sign in to comment.
Something went wrong with that request. Please try again.