cuddle-please/crates/cuddle-please-actions/src/actions.rs
kjuulh 3878e6bc0a
All checks were successful
continuous-integration/drone/push Build is passing
feat: add rust actions
Signed-off-by: kjuulh <contact@kjuulh.io>
2024-04-09 22:57:01 +02:00

10 lines
233 B
Rust

use semver::Version;
use crate::ActionConfig;
pub trait Action {
fn enabled(&self, config: &ActionConfig) -> anyhow::Result<bool>;
fn name(&self) -> String;
fn execute(&self, version: &Version) -> anyhow::Result<()>;
}