summaryrefslogtreecommitdiffstats
path: root/cmd/deploy/version.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/deploy/version.go')
-rw-r--r--cmd/deploy/version.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/cmd/deploy/version.go b/cmd/deploy/version.go
new file mode 100644
index 0000000..d2cd430
--- /dev/null
+++ b/cmd/deploy/version.go
@@ -0,0 +1,17 @@
1package main
2
3import (
4 "fmt"
5
6 "github.com/spf13/cobra"
7)
8
9var versionCmd = &cobra.Command{
10 Use: "version",
11 Short: "Show version information",
12 Run: func(cmd *cobra.Command, args []string) {
13 fmt.Printf("deploy version %s\n", version)
14 fmt.Printf(" commit: %s\n", commit)
15 fmt.Printf(" built: %s\n", date)
16 },
17}