INNER CODE UNIT · Go
Execute
derailed/popeye · cmd/root.go:46
func Execute() {
if err := rootCmd.Execute(); err != nil {
return
}
}
// Doit runs the scans and lints pass over the specified cluster.
func doIt(cmd *cobra.Command, args []string) {
bomb(initLogs())
defer func() {
if err := recover(); err != nil {
pkg.BailOut(err.(error))
}
}()
clearScreen()
bomb(flags.Validate())