kaspa_cli_lib/modules/halt.rs
1use crate::imports::*;
2
3#[derive(Default, Handler)]
4#[help("Halt execution (used for testing)")]
5pub struct Halt;
6
7impl Halt {
8 async fn main(self: Arc<Self>, ctx: &Arc<dyn Context>, _argv: Vec<String>, _cmd: &str) -> Result<()> {
9 tprintln!(ctx, "halt");
10 panic!("halting on user request...");
11 }
12}