INNER CODE UNIT · Go

root

runmedev/runme · main.go:17

func root() (status int) {
	root := cmd.Root()

	rootWithCPUProfile(func() {
		if err := root.Execute(); err != nil {
			var exitErr cmd.ExitCodeError
			if errors.As(err, &exitErr) {
				status = exitErr.Code
			} else {
				logf("could not execute command: %v\n", err)
				status = 1
			}
		}
	})

	return
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…