13 lines
No EOL
425 B
Rust
13 lines
No EOL
425 B
Rust
use anyhow::Result;
|
|
use clap::Parser;
|
|
use memory::{MemoryUserService, MemoryProductService};
|
|
use cli::Cli;
|
|
|
|
#[tokio::main]
|
|
async fn main() -> Result<()> {
|
|
let user_service = MemoryUserService::new(memory::InMemoryUserRepository::new());
|
|
let product_service = MemoryProductService::new(memory::InMemoryProductRepository::new());
|
|
|
|
let cli = Cli::try_parse()?;
|
|
cli.run(user_service, product_service).await
|
|
}
|