luxid-cli 0.1.0

In-application command line for the Luxid web framework
Documentation

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.