grafana/pkg/cmd/grafana-server/main.go
Kevin Minehart 1ced2bc6df
move main.go logic out of commands (#38555)
* move main.go logic out of commands
2021-08-26 15:42:22 +02:00

23 lines
460 B
Go

package main
import (
"os"
"github.com/grafana/grafana/pkg/cmd/grafana-server/commands"
)
// The following variables cannot be constants, since they can be overridden through the -X link flag
var version = "7.5.0"
var commit = "NA"
var buildBranch = "main"
var buildstamp string
func main() {
os.Exit(commands.RunServer(commands.ServerOptions{
Version: version,
Commit: commit,
BuildBranch: buildBranch,
BuildStamp: buildstamp,
}))
}