Expand description
The application’s command line.
This lives inside the app binary rather than in a standalone luxid
executable, because the things these commands operate on — the route table,
the migration list, the container — are types in the application’s own
crate. No external binary can see them.
ⓘ
#[tokio::main]
async fn main() -> luxid::Result<()> {
luxid::cli::run::<Migrator>(build_app()).await
}Scaffolding commands (new, make:model) are the part that can be
standalone, since they only touch the filesystem.
Modules§
- naming
- Turning one name the user typed into every name the generator needs.
- scaffold
- File generation for
luxid newandluxid make:model.
Functions§
- render_
routes - Render the routing table as aligned columns.
- run
- Parse the process arguments and run the matching command.