summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorNguyen Ngoc Trung (Steven) <trunga0@gmail.com>2018-10-24 18:00:53 -0700
committerAlex Goodman <wagoodman@users.noreply.github.com>2018-10-24 21:00:53 -0400
commit5dfd9fb9e833e1e9813c04c0f4190ec5c384c724 (patch)
treef2d3ce93946e856720a03965e561f6924a17c6c7 /main.go
parent4385723d14a11bf94ed63ac9845cdc3932ceb1a7 (diff)
Support version printout (#37)
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/main.go b/main.go
index 09cae08..c61034d 100644
--- a/main.go
+++ b/main.go
@@ -20,9 +20,7 @@
package main
-import (
- "github.com/wagoodman/dive/cmd"
-)
+import "github.com/wagoodman/dive/cmd"
var (
version = "No version provided"
@@ -31,5 +29,11 @@ var (
)
func main() {
+ cmd.SetVersion(&cmd.Version{
+ Version: version,
+ Commit: commit,
+ BuildTime: buildTime,
+ })
+
cmd.Execute()
}