kjuulh
3878e6bc0a
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kjuulh <contact@kjuulh.io>
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<()>;
|
|
}
|