mirror of
https://github.com/fleetdm/fleet
synced 2026-05-06 06:48:54 +00:00
- Update message to include correct link: https://fleetdm.com/docs/using-fleet/faq#how-do-i-downgrade-from-fleet-premium-to-fleet-free
22 lines
665 B
Go
22 lines
665 B
Go
package fleet
|
||
|
||
import (
|
||
"io"
|
||
|
||
"github.com/fatih/color"
|
||
)
|
||
|
||
func WriteExpiredLicenseBanner(w io.Writer) {
|
||
warningColor := color.New(color.FgWhite, color.Bold, color.BgRed)
|
||
warningColor.Fprintf(
|
||
w,
|
||
"Your license for Fleet Premium is about to expire. If you’d like to renew or have questions about "+
|
||
"downgrading, please navigate to "+
|
||
"https://fleetdm.com/docs/using-fleet/faq#how-do-i-downgrade-from-fleet-premium-to-fleet-free and "+
|
||
"contact us for help.",
|
||
)
|
||
// We need to disable color and print a new line to make it look somewhat neat, otherwise colors continue to the
|
||
// next line
|
||
warningColor.DisableColor()
|
||
warningColor.Fprintln(w)
|
||
}
|