return"Maintenance window: not set; apply whenever suits you.\n"
casew.Contains(now):
returnfmt.Sprintf("Maintenance window: open now, until %s.\n",w.End.Local().Format(layout))
casenow.Before(w.Start):
returnfmt.Sprintf("Maintenance window: opens %s, until %s. Felis applies nothing on its own; run the apply commands inside it.\n",w.Start.Local().Format(layout),w.End.Local().Format(layout))
default:
returnfmt.Sprintf("Maintenance window: ended %s; set a new one in the panel before applying.\n",w.End.Local().Format(layout))
{"unset",updates.Window{},nil,w.Start,"Maintenance window: not set; apply whenever suits you.\n"},
{"half set",updates.Window{Start:w.Start},nil,w.Start,"Maintenance window: not set; apply whenever suits you.\n"},
{"at the opening instant",w,nil,w.Start,"Maintenance window: open now, until 2026-09-27 04:00 CST.\n"},
{"before",w,nil,w.Start.Add(-time.Minute),"Maintenance window: opens 2026-09-27 02:00 CST, until 2026-09-27 04:00 CST. Felis applies nothing on its own; run the apply commands inside it.\n"},
{"at the closing instant",w,nil,w.End,"Maintenance window: ended 2026-09-27 04:00 CST; set a new one in the panel before applying.\n"},