diff --git a/internal/cmd/root.go b/internal/cmd/root.go index 3ae3e4c..3efa290 100644 --- a/internal/cmd/root.go +++ b/internal/cmd/root.go @@ -6,12 +6,16 @@ import ( "github.com/spf13/cobra" ) +// version is set via goreleaser +var version = "UNDEFINED" + func newRoot() *cobra.Command { const shortDesc = "Visualize Dependencies and generate deployment orders" root := &cobra.Command{ Short: shortDesc, SilenceUsage: true, + Version: version, } root.AddCommand(newDeployOrder().Command)