From 79719b6fb0c281c2f5dbf656c3a045df9260e331 Mon Sep 17 00:00:00 2001 From: bryanl Date: Wed, 23 Mar 2016 10:39:47 -0400 Subject: [PATCH] use complete version --- commands/version.go | 2 +- doit.go | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/commands/version.go b/commands/version.go index 5cd8390..0a2bd94 100644 --- a/commands/version.go +++ b/commands/version.go @@ -39,7 +39,7 @@ func Version() *Command { doit.DoitVersion.Label = doit.Label } - fmt.Println(doit.DoitVersion) + fmt.Println(doit.DoitVersion.Complete()) }, }, } diff --git a/doit.go b/doit.go index 1578ab6..c368686 100644 --- a/doit.go +++ b/doit.go @@ -67,10 +67,6 @@ func (v Version) String() string { buffer.WriteString("-" + v.Label) } - if v.Build != "" { - buffer.WriteString(" " + v.Build) - } - return buffer.String() }