From 2913cde9c3b725080c13b4063e8e2bab8f312b66 Mon Sep 17 00:00:00 2001 From: caicloud-bot Date: Tue, 12 Jan 2021 18:14:32 +0800 Subject: [PATCH] feat(cmd): add version information (#434) Co-authored-by: iawia002 --- cmd/nirvana/main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/nirvana/main.go b/cmd/nirvana/main.go index 19f755dc..eef568d0 100644 --- a/cmd/nirvana/main.go +++ b/cmd/nirvana/main.go @@ -21,12 +21,14 @@ import ( "github.com/caicloud/nirvana/cmd/nirvana/client" "github.com/caicloud/nirvana/cmd/nirvana/project" "github.com/caicloud/nirvana/log" + "github.com/spf13/cobra" ) var root = &cobra.Command{ - Use: "nirvana", - Short: "Nirvana toolchains", + Use: "nirvana", + Short: "Nirvana toolchains", + Version: "v0.3.0", } func main() {