cmfy 0.1.1

A CLI companion app for Comfy UI
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use clap::Args;
use cmfy::{Client, Result};

use super::Run;

/// Cancel currently running prompt
#[derive(Debug, Args)]
pub struct Cancel;

impl Run for Cancel {
    async fn run(self, client: Client) -> Result<()> {
        client.cancel_running_prompt().await?;
        Ok(())
    }
}