diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-15 20:05:58 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-15 20:05:58 +0900 |
| commit | 4b4bacdbced5c4af5bfbb2b5a2615b1c3d73c038 (patch) | |
| tree | 6ee8631fb0ea24f497897155902917706215ebda /crates/shirabe/src/script | |
| parent | c184a4cb4a909b11c053c1037fc6e21ef2692e94 (diff) | |
| download | php-shirabe-4b4bacdbced5c4af5bfbb2b5a2615b1c3d73c038.tar.gz php-shirabe-4b4bacdbced5c4af5bfbb2b5a2615b1c3d73c038.tar.zst php-shirabe-4b4bacdbced5c4af5bfbb2b5a2615b1c3d73c038.zip | |
feat(port): port ScriptEvents.php
Diffstat (limited to 'crates/shirabe/src/script')
| -rw-r--r-- | crates/shirabe/src/script/script_events.rs | 17 |
1 files changed, 17 insertions, 0 deletions
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"; +} |
