From 7f606f36fef0c0467c3c0db3d0da33af486dae8a Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 17 May 2026 02:25:52 +0900 Subject: feat(port): add stub implementations of shirabe-external-packages --- .../src/symfony/component/process/process.rs | 110 +++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 crates/shirabe-external-packages/src/symfony/component/process/process.rs (limited to 'crates/shirabe-external-packages/src/symfony/component/process/process.rs') diff --git a/crates/shirabe-external-packages/src/symfony/component/process/process.rs b/crates/shirabe-external-packages/src/symfony/component/process/process.rs new file mode 100644 index 0000000..7572f3b --- /dev/null +++ b/crates/shirabe-external-packages/src/symfony/component/process/process.rs @@ -0,0 +1,110 @@ +use shirabe_php_shim::PhpMixed; +use indexmap::IndexMap; + +#[derive(Debug)] +pub struct Process; + +impl Process { + pub const ERR: &'static str = "err"; + pub const OUT: &'static str = "out"; + + pub fn new( + command: Vec, + cwd: Option, + env: Option>, + input: Option, + timeout: Option, + ) -> Self { + todo!() + } + + pub fn from_shell_commandline( + command: &str, + cwd: Option<&str>, + env: Option>, + input: Option, + timeout: Option, + ) -> Self { + todo!() + } + + pub fn set_timeout(&mut self, timeout: Option) -> &mut Self { + todo!() + } + + pub fn set_env(&mut self, env: IndexMap) -> &mut Self { + todo!() + } + + pub fn set_input(&mut self, input: Option) -> &mut Self { + todo!() + } + + pub fn run(&mut self, callback: Option>) -> i64 { + todo!() + } + + pub fn must_run(&mut self, callback: Option>) -> anyhow::Result<&mut Self> { + todo!() + } + + pub fn start(&mut self, callback: Option>) { + todo!() + } + + pub fn wait(&mut self, callback: Option>) -> i64 { + todo!() + } + + pub fn stop(&mut self, timeout: f64, signal: Option) -> Option { + todo!() + } + + pub fn is_running(&self) -> bool { + todo!() + } + + pub fn is_successful(&self) -> bool { + todo!() + } + + pub fn is_started(&self) -> bool { + todo!() + } + + pub fn is_terminated(&self) -> bool { + todo!() + } + + pub fn get_output(&self) -> String { + todo!() + } + + pub fn get_error_output(&self) -> String { + todo!() + } + + pub fn get_exit_code(&self) -> Option { + todo!() + } + + pub fn get_exit_code_text(&self) -> Option { + todo!() + } + + pub fn get_command_line(&self) -> String { + todo!() + } + + pub fn check_timeout(&self) -> anyhow::Result<()> { + todo!() + } + + pub fn get_timeout(&self) -> Option { + todo!() + } + + pub fn set_working_directory(&mut self, cwd: &str) -> &mut Self { + todo!() + } +} -- cgit v1.3.1