Repository navigation
roost 2.1.0
The first release of the roost CLI as its own package. It previously shipped
inside swift-roost, which made mint install resolve the framework's whole
dependency graph.
- Install with
mint install roost-framework/roost-cli@2.1.0. - Generated apps depend on swift-roost 2.1.0 and ESW 1.6.0.
roost gen resourcegenerates controllers instead of closure routes:
TodoControllerfor HTML andTodoAPIControllerfor JSON, registered with
resources(...). Scoped HTML controllers runrequireAuth()as a controller
plug. Actions decode input withconn.permit, so only the input type's
fields can be set.roost gen authgeneratesRegistrationControllerandSessionController,
with their routes inRoutes/AuthRoutes.swift.roost newgenerates aPageControllerfor/and logs requests with
roost_requestLogger().roost spectro <arguments>runs thespectroexecutable from the app's own
dependencies.