10 lines
233 B
Rust
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<()>;
|
||
|
}
|