aboutsummaryrefslogtreecommitdiff
path: root/beku.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2018-05-17 01:03:50 +0700
committerShulhan <ms@kilabit.info>2018-05-17 01:08:32 +0700
commit2e73509de51f85f9f987d2f95b3ed715e2cd1c65 (patch)
tree13b800b2fb45c9a2ab085a1d57311aae4904246c /beku.go
parentb10bec5dafce97067b26090ca11986e260c13ca2 (diff)
downloadbeku-2e73509de51f85f9f987d2f95b3ed715e2cd1c65.tar.xz
Change git compare from using browser to using "git log"
Also, * add unit test for gitCompareVersion * use defined variable for standard output and error so we can use it on testing
Diffstat (limited to 'beku.go')
-rw-r--r--beku.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/beku.go b/beku.go
index 7af3e93..af80fad 100644
--- a/beku.go
+++ b/beku.go
@@ -2,6 +2,7 @@ package beku
import (
"errors"
+ "os"
)
const (
@@ -24,7 +25,7 @@ const (
envDEBUG = "BEKU_DEBUG"
msgUpdateProceed = "Proceed with update?"
- msgUpdateView = "Compare changes on browser?"
+ msgUpdateView = "View commit logs?"
prefixTag = 'v'
@@ -59,6 +60,9 @@ var (
)
var (
+ defStdout = os.Stdout
+ defStderr = os.Stderr
+
sectionPackage = "package"
keyDeps = "deps"