package sub import ( "golang.flu0r1ne.net/planr" "os" "fmt" ) func dieIncompatibleVersion(cfg *planr.Config) { if cfg != nil && cfg.IncompatibleWithVersion() { fmt.Fprintf(os.Stderr, "This version of PlanR (%v) is incompatible with config version %s\n", planr.VERSION, cfg.Version) fmt.Fprintf(os.Stderr, "Please upgrade to version %s or greater\n", cfg.Version) os.Exit(1) } }