From 4b4bacdbced5c4af5bfbb2b5a2615b1c3d73c038 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 15 May 2026 20:05:58 +0900 Subject: feat(port): port ScriptEvents.php --- crates/shirabe/src/script/script_events.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'crates/shirabe/src') diff --git a/crates/shirabe/src/script/script_events.rs b/crates/shirabe/src/script/script_events.rs index 2a58f47..c3ec370 100644 --- a/crates/shirabe/src/script/script_events.rs +++ b/crates/shirabe/src/script/script_events.rs @@ -1 +1,18 @@ //! ref: composer/src/Composer/Script/ScriptEvents.php + +pub struct ScriptEvents; + +impl ScriptEvents { + pub const PRE_INSTALL_CMD: &'static str = "pre-install-cmd"; + pub const POST_INSTALL_CMD: &'static str = "post-install-cmd"; + pub const PRE_UPDATE_CMD: &'static str = "pre-update-cmd"; + pub const POST_UPDATE_CMD: &'static str = "post-update-cmd"; + pub const PRE_STATUS_CMD: &'static str = "pre-status-cmd"; + pub const POST_STATUS_CMD: &'static str = "post-status-cmd"; + pub const PRE_AUTOLOAD_DUMP: &'static str = "pre-autoload-dump"; + pub const POST_AUTOLOAD_DUMP: &'static str = "post-autoload-dump"; + pub const POST_ROOT_PACKAGE_INSTALL: &'static str = "post-root-package-install"; + pub const POST_CREATE_PROJECT_CMD: &'static str = "post-create-project-cmd"; + pub const PRE_ARCHIVE_CMD: &'static str = "pre-archive-cmd"; + pub const POST_ARCHIVE_CMD: &'static str = "post-archive-cmd"; +} -- cgit v1.3.1