var (
// Name is the name of the project Name = "answer"
// Version is the version of the project Version = "0.0.0"
// Revision is the git short commit revision number Revision = "-"
// Time is the build time of the project Time = "-"
// GoVersion is the go version of the project GoVersion = "1.19"
)
go build -ldflags "-X github.com/apache/incubator-answer/cmd.Version=x.y.z"
Execute adds all child commands to the root command and sets flags appropriately.
This is called by main(). It only needs to happen once to the rootCmd.