Repository navigation
v0.2.5
A small release on top of v0.2.4: a new routes command.
Added: bogie routes, like rails routes
Lists every mounted route (method, path, handler) for the app in the current directory. It boots the app the same way serve does, so the list reflects what is actually wired, in the order it was wired — not a guess read off the templates.
bogie routes
# or, from the app's own binary:
go run . routesIt's built by pointing gin's own debug route-print hook (gin.DebugPrintRouteFunc) at a Rails-shaped format, rather than fetching Router.Routes() and writing a second route lister. One consequence of reusing that hook: like gin's own debug print, it only fires when the app is in gin's debug mode, which NewServer only enables for the development environment. So routes prints in development and exits silently (status 0, no output) in test or production — the same trade-off NewServer already makes for serve/worker.
Wired as a thin proxy, the same way db and migrate are: bogie routes runs go run . routes inside the app.
Install / upgrade
go install github.com/bogie-go/bogie@latest # v0.2.5An existing app: commit your work, then run bogie app:update. This is a change to main.go.tmpl, a file the tool templates into your app, so app:update carries it; any app g controller/g model/etc. already generates gets routes for free after merging.
Full Changelog: v0.2.4...v0.2.5