diff --git a/cmd/polaris/root.go b/cmd/polaris/root.go index 1718cadc5..7db79e8a9 100644 --- a/cmd/polaris/root.go +++ b/cmd/polaris/root.go @@ -76,6 +76,9 @@ var rootCmd = &cobra.Command{ } os.Exit(1) }, + PersistentPostRun: func(cmd *cobra.Command, args []string) { + os.Stderr.WriteString("\n\nWant more? Automate Polaris for free with Fairwinds Insights!\nš https://fairwinds.com/insights-signup/polaris š \n") + }, } // Execute the stuff diff --git a/cmd/polaris/version.go b/cmd/polaris/version.go index 6074ee31f..f61e2ae31 100644 --- a/cmd/polaris/version.go +++ b/cmd/polaris/version.go @@ -31,4 +31,7 @@ var versionCmd = &cobra.Command{ Run: func(cmd *cobra.Command, args []string) { fmt.Println("Polaris version:" + version) }, + PersistentPostRunE: func(cmd *cobra.Command, args []string) error { + return nil + }, } diff --git a/pkg/dashboard/templates/navbar.gohtml b/pkg/dashboard/templates/navbar.gohtml index ae81c4d52..60c5ea779 100644 --- a/pkg/dashboard/templates/navbar.gohtml +++ b/pkg/dashboard/templates/navbar.gohtml @@ -5,6 +5,7 @@ +