INNER CODE UNIT · Go
main
casosorg/casos · main.go:60
func main() {
// Allow multiple in-process Kubernetes components to reinitialise the global
// logging singleton without killing the process.
logsapi.ReapplyHandling = logsapi.ReapplyHandlingIgnoreUnchanged
// Registered before InitFlag, which is what parses the command line.
showVersion := flag.Bool("version", false, "print the CasOS version and exit")
object.InitFlag()
// Answered before any subsystem starts, so the flag works on a machine with
// no database, no config file and no writable data directory.
if *showVersion {
fmt.Println(versionString())
return
}
if args := flag.Args(); len(args) > 0 && args[0] == "join" {
os.Exit(runJoinCommand(args[1:]))