summaryrefslogtreecommitdiffstats
path: root/pkg/config
diff options
context:
space:
mode:
authorKristijan Husak <husakkristijan@gmail.com>2018-10-17 14:20:15 +0200
committerKristijan Husak <husakkristijan@gmail.com>2018-10-20 11:58:08 +0200
commit990dc8c4ea1133a58d5c863abd543ee5cde1e700 (patch)
tree80cee673655645b82f7d76d2cc2be409c16c1c8e /pkg/config
parentc69fce2e9d28dc847ad5a4528b99682fe61762af (diff)
Add separate open command for links and check if branch exists on remote before opening pull request link.
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/config_default_platform.go3
-rw-r--r--pkg/config/config_linux.go3
-rw-r--r--pkg/config/config_windows.go3
3 files changed, 6 insertions, 3 deletions
diff --git a/pkg/config/config_default_platform.go b/pkg/config/config_default_platform.go
index f3c1a36e5..df205c0d7 100644
--- a/pkg/config/config_default_platform.go
+++ b/pkg/config/config_default_platform.go
@@ -6,5 +6,6 @@ package config
func GetPlatformDefaultConfig() []byte {
return []byte(
`os:
- openCommand: 'open {{filename}}'`)
+ openCommand: 'open {{filename}}'
+ openLinkCommand: 'open {{link}}'`)
}
diff --git a/pkg/config/config_linux.go b/pkg/config/config_linux.go
index 90e922416..2dfbdb1c6 100644
--- a/pkg/config/config_linux.go
+++ b/pkg/config/config_linux.go
@@ -4,5 +4,6 @@ package config
func GetPlatformDefaultConfig() []byte {
return []byte(
`os:
- openCommand: 'sh -c "xdg-open {{filename}} >/dev/null"'`)
+ openCommand: 'sh -c "xdg-open {{filename}} >/dev/null"'
+ openLinkCommand: 'sh -c "xdg-open {{link}} >/dev/null"'`)
}
diff --git a/pkg/config/config_windows.go b/pkg/config/config_windows.go
index b81a5fdb5..6f6560316 100644
--- a/pkg/config/config_windows.go
+++ b/pkg/config/config_windows.go
@@ -4,5 +4,6 @@ package config
func GetPlatformDefaultConfig() []byte {
return []byte(
`os:
- openCommand: 'cmd /c "start "" {{filename}}"'`)
+ openCommand: 'cmd /c "start "" {{filename}}"'
+ openLinkCommand: 'cmd /c "start "" {{link}}"'`)
}