// Command writeestilo re-writes the files internal/calls/static takes from // the estilo this module pins: theme.css (Calma, with Calls's accent), // and rastrillo's busy rule as estilo carries it — rastrillo.js without // the old rule, busy.js and busy.css. Run it from the repository root // after upgrading estilo; the pin tests in internal/callstest fail until you do. package main import ( "os" "amadan.net/oficina/estilo.git/busy" "amadan.net/oficina/estilo.git/theme" ) func main() { css, ok := theme.ForApp("calls") if !ok { panic("estilo's theme ring has no calls") } for name, body := range map[string][]byte{ "theme.css": css, "rastrillo.js": busy.ShimJS(), "busy.js": busy.JS(), "busy.css": busy.CSS(), } { if err := os.WriteFile("internal/calls/static/"+name, body, 0o644); err != nil { panic(err) } } }