cuddle-please/crates/cuddle-please-actions/src/actions.rs

10 lines
233 B
Rust
Raw Normal View History

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<()>;
}