Skip to content

Commit 2d28ea5

Browse files
sc/rd 71 add plg link (#896)
* Add persistentpostrun to root cmd and postrun to version cmd * Change PLG link * Add PLG link to dashboard * <strong> the link Co-authored-by: Andrew Suderman <andy@suderman.dev>
1 parent 71b0e00 commit 2d28ea5

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

cmd/polaris/root.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ var rootCmd = &cobra.Command{
7676
}
7777
os.Exit(1)
7878
},
79+
PersistentPostRun: func(cmd *cobra.Command, args []string) {
80+
os.Stderr.WriteString("\n\nWant more? Automate Polaris for free with Fairwinds Insights!\n🚀 https://fairwinds.com/insights-signup/polaris 🚀 \n")
81+
},
7982
}
8083

8184
// Execute the stuff

cmd/polaris/version.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,7 @@ var versionCmd = &cobra.Command{
3131
Run: func(cmd *cobra.Command, args []string) {
3232
fmt.Println("Polaris version:" + version)
3333
},
34+
PersistentPostRunE: func(cmd *cobra.Command, args []string) error {
35+
return nil
36+
},
3437
}

pkg/dashboard/templates/navbar.gohtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<a href="https://www.fairwinds.com/polaris-user-insights-demo?utm_source=polaris&utm_medium=polaris&utm_campaign=polaris" target="_blank">
66
<img class="fw-logo" src="static/images/white_logo_fairwinds.svg" alt="Fairwinds" />
77
</a>
8+
<div style="color: white;"> Want more? Automate Polaris with <a href="https://www.fairwinds.com/insights-signup/polaris"><strong>Fairwinds Insights</strong></a></div>
89
<div class="right-section p-0 d-flex justify-content-between">
910
<a href="https://github.com/FairwindsOps" target="_blank">
1011
<img class="gh-logo" src="static/images/white_icon_github.svg" alt="Github" />

0 commit comments

Comments
 (0)