Skip to content

Commit b2edcf6

Browse files
authored
fix: remove Insights toast (#573)
* fix: remove Insights toast * fix: put back overzealous deletion
1 parent cc9f26b commit b2edcf6

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

cmd/root.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ var (
6666
kubeContext string
6767
noHeaders bool
6868
exitCode int
69-
noFooter bool
7069
kubeConfigPath string
7170
)
7271

@@ -95,7 +94,6 @@ func init() {
9594
rootCmd.PersistentFlags().StringVarP(&outputFormat, "output", "o", "normal", "The output format to use. (normal|wide|custom|json|yaml|markdown|csv)")
9695
rootCmd.PersistentFlags().StringSliceVar(&customColumns, "columns", nil, "A list of columns to print. Mandatory when using --output custom, optional with --output markdown")
9796
rootCmd.PersistentFlags().StringSliceVar(&componentsFromUser, "components", nil, "A list of components to run checks for. If nil, will check for all found in versions.")
98-
rootCmd.PersistentFlags().BoolVar(&noFooter, "no-footer", false, "Disable footer output")
9997

10098
rootCmd.AddCommand(detectFilesCmd)
10199
detectFilesCmd.PersistentFlags().StringVarP(&directory, "directory", "d", "", "The directory to scan. If blank, defaults to current working dir.")
@@ -167,13 +165,6 @@ var rootCmd = &cobra.Command{
167165
os.Exit(1)
168166
},
169167
PersistentPostRun: func(cmd *cobra.Command, args []string) {
170-
171-
if noFooter, err := cmd.Flags().GetBool("no-footer"); err == nil && noFooter {
172-
klog.V(5).Infof("exiting with code %d", exitCode)
173-
os.Exit(exitCode)
174-
}
175-
176-
os.Stderr.WriteString("\n\nWant more? Automate Pluto for free with Fairwinds Insights!\n 🚀 https://fairwinds.com/insights-signup/pluto 🚀 \n")
177168
klog.V(5).Infof("exiting with code %d", exitCode)
178169
os.Exit(exitCode)
179170
},

0 commit comments

Comments
 (0)