INNER CODE UNIT · Go
execName
derailed/popeye · cmd/root.go:37
func execName() string {
n := "popeye"
if strings.HasPrefix(filepath.Base(os.Args[0]), "kubectl-") {
return "kubectl-" + n
}
return n
}
// Execute root command
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())