feat(bonfire): add FlagBool and read every bare switch with it (IN-04, quick-261028-rqd)

This commit is contained in:
Jakub Zych
2026-10-28 20:32:38 +01:00
parent e34d113c80
commit 795c4f6b29
15 changed files with 86 additions and 54 deletions

View File

@@ -47,7 +47,7 @@ scripts.`,
}
infos := r.Routes()
if in != nil {
if v, _ := in.Flag(jsonFlagName); v == "true" {
if bonfire.FlagBool(in, jsonFlagName) {
list := make([]routeJSON, 0, len(infos))
for _, rt := range infos {
mw := rt.Middleware