From fce5d59aeb5a1fdc07a0fa4b74f38ded23d9551e Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 12 May 2026 04:14:55 +0900 Subject: feat(port): port PluginInterface.php --- crates/shirabe/src/plugin/plugin_interface.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'crates/shirabe/src/plugin') diff --git a/crates/shirabe/src/plugin/plugin_interface.rs b/crates/shirabe/src/plugin/plugin_interface.rs index 3a33bf1..ae64034 100644 --- a/crates/shirabe/src/plugin/plugin_interface.rs +++ b/crates/shirabe/src/plugin/plugin_interface.rs @@ -1 +1,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); +} -- cgit v1.3.1