mirror of
https://github.com/mii443/maudio-router.git
synced 2025-08-22 16:05:35 +00:00
24 lines
381 B
Rust
24 lines
381 B
Rust
mod args;
|
|
mod audio;
|
|
mod commands;
|
|
mod config;
|
|
mod device;
|
|
|
|
use clap::Parser;
|
|
|
|
use crate::args::Cli;
|
|
|
|
#[tokio::main]
|
|
async fn main() {
|
|
let cli = Cli::parse();
|
|
|
|
match cli.command {
|
|
args::Commands::Run(run) => {
|
|
commands::run::run(run);
|
|
}
|
|
args::Commands::Device(device) => {
|
|
commands::device::device(device);
|
|
}
|
|
}
|
|
}
|