aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/plugin/plugin_interface.rs
blob: ae6403461c5fcaf2e6961617b285208c6b4dc35f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! ref: composer/src/Composer/Plugin/PluginInterface.php

use crate::composer::Composer;
use crate::io::io_interface::IOInterface;

pub trait PluginInterface {
    const PLUGIN_API_VERSION: &'static str = "2.9.0";

    fn activate(&mut self, composer: &Composer, io: &dyn IOInterface);

    fn deactivate(&mut self, composer: &Composer, io: &dyn IOInterface);

    fn uninstall(&mut self, composer: &Composer, io: &dyn IOInterface);
}