mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-04-28 05:20:14 +02:00
18 lines
563 B
Rust
18 lines
563 B
Rust
include!("./lib.rs");
|
|
pub fn main () -> Usually<()> { SamplerCli::parse().run() }
|
|
#[derive(Debug, Parser)] #[command(version, about, long_about = None)] pub struct SamplerCli {
|
|
/// Name of JACK client
|
|
#[arg(short, long)] name: Option<String>,
|
|
/// Path to plugin
|
|
#[arg(short, long)] path: Option<String>,
|
|
}
|
|
impl SamplerCli {
|
|
fn run (&self) -> Usually<()> {
|
|
Tui::run(JackClient::new("tek_sampler")?.activate_with(|x|{
|
|
let sampler = tek::SamplerTui::try_from(x)?;
|
|
Ok(sampler)
|
|
})?)?;
|
|
Ok(())
|
|
}
|
|
}
|