INNER CODE UNIT · Go
main
deckhouse/deckhouse · dhctl/cmd/dhctl/main.go:294
func main() {
appContext := context.Background()
opts := options.New()
initGlobalVars()
registerOnShutdown("Restore terminal if needed", restoreTerminal())
registerOnShutdown("Leave alternate screen if needed", logger.RestoreTerminal)
defer logger.RestoreTerminal()
registerOnShutdown("Stop kubernetes provider daemon", tofu.StopProviderDaemon)
go tomb.WaitForProcessInterruption(tomb.BeforeInterrupted{
disableCleanupOnInterrupted,
})
kpApp := kingpin.New(app.AppName, "A tool to create a Kubernetes cluster and infrastructure.")
kpApp.HelpFlag.Short('h')