kaspa_cli_lib/modules/
mute.rs

1use crate::imports::*;
2
3#[derive(Default, Handler)]
4#[help("Mute (toggle notification output mute)")]
5pub struct Mute;
6
7impl Mute {
8    async fn main(self: Arc<Self>, ctx: &Arc<dyn Context>, _argv: Vec<String>, _cmd: &str) -> Result<()> {
9        let ctx = ctx.clone().downcast_arc::<KaspaCli>()?;
10        tprintln!(ctx, "mute is {}", ctx.toggle_mute());
11        Ok(())
12    }
13}