command/generate/generate_routes library

Functions

featureRoutes(List<String> featureDirs, String pkg) List<FeatureRoute>
Maps discovered feature directories (e.g. lib/presentation/product) to FeatureRoutes using the project's package name for view imports.
runGenerateRoutes(List<String> args) → void
river_cli generate routes — discovers every scaffolded feature and regenerates lib/app/routes/app_routes.dart and route_page.dart from scratch, so the route table always matches what is on disk.