25 lines
416 B
Rust
25 lines
416 B
Rust
use clap::Parser;
|
|
use color_eyre::Result;
|
|
|
|
use crate::handler::Handler;
|
|
|
|
mod handler;
|
|
|
|
#[derive(Debug, Parser)]
|
|
#[command(name = "playerctl")]
|
|
enum CliCommand {
|
|
#[command(name = "deckster-run", hide = true)]
|
|
Run,
|
|
}
|
|
|
|
fn main() -> Result<()> {
|
|
let command = CliCommand::parse();
|
|
|
|
match command {
|
|
CliCommand::Run => {
|
|
deckster_mode::run(Handler::new)?;
|
|
}
|
|
}
|
|
|
|
Ok(())
|
|
}
|