INNER CODE UNIT · Go

main

uswitch/kiam · cmd/kiam/main.go:20

func main() {
	rootParser := kingpin.CommandLine

	var agent agentCommand
	agent.Bind(rootParser.Command("agent", "run the agent"))

	var server serverCommand
	server.Bind(rootParser.Command("server", "run the server"))

	var health healthCommand
	health.Bind(rootParser.Command("health", "run the health check"))

	switch kingpin.Parse() {
	case "agent":
		agent.Run()
	case "server":
		server.Run()
	case "health":

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…