dot_over/exec/
action.rs

1use std::fmt::Display;
2
3use anyhow::Result;
4use async_trait::async_trait;
5
6use super::context::Ctx;
7
8#[async_trait]
9pub trait Action: Display {
10    async fn execute(&self, ctx: Ctx) -> Result<()>;
11}
12
13// pub struct Progress {
14//     percent: u8,
15// }
16
17// #[async_trait]
18// pub trait WithProgress {
19//     fn listen(&self) -> Receiver<Progress>;
20// }