BootstrapPlugin

Trait BootstrapPlugin 

Source
pub trait BootstrapPlugin: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn phases(&self) -> Vec<&'static str>;
    fn should_activate(&self, repo_root: &PathBuf) -> bool;
    fn run(&self, context: PluginContext<'_>) -> Result<PluginOutcome>;
}
Expand description

Trait that bootstrap plugins must implement

Required Methods§

Source

fn name(&self) -> &'static str

The name of this plugin (e.g., “rust-cargo”, “python-pyproject”)

Source

fn phases(&self) -> Vec<&'static str>

Returns the bootstrap phases this plugin will execute

Source

fn should_activate(&self, repo_root: &PathBuf) -> bool

Returns true if this plugin should be auto-activated for the given repository

Source

fn run(&self, context: PluginContext<'_>) -> Result<PluginOutcome>

Execute the bootstrap for this plugin

Implementors§