INNER CODE UNIT · Go
init
openclarity/openclarity · api/server/cmd/main.go:49
func init() {
cmdRun := cobra.Command{
Use: "run",
Run: runCommand,
Short: "Starts the server",
Long: "Starts the OpenClarity API server",
Example: ExecutableName + " run",
}
cmdRun.PersistentFlags().StringVar(&logLevel,
LogLevelFlag,
LogLevelDefaultValue,
"Set log level [panic fatal error warning info debug trace]")
cmdVersion := cobra.Command{
Use: "version",
Run: versionCommand,
Short: "Displays the version",
Long: "Displays the version of the OpenClarity API server",