use quokka::state::{Commands, Database, ProvideState, State, Templating};
use quokka_admin::{state::AdminState, AdminBundle};
#[derive(Clone, State, ProvideState)]
pub struct CliState {
templating: Templating,
database: Database,
admin: AdminState<Self>,
commands: Commands<Self>,
}
#[tokio::main]
async fn main() -> quokka::Result<()> {
quokka::Quokka::<CliState>::try_default()?
.load::<AdminBundle>()?
.execute_command()
.await
}