diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-17 02:25:52 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-17 02:25:52 +0900 |
| commit | 7f606f36fef0c0467c3c0db3d0da33af486dae8a (patch) | |
| tree | c3f0a3340e1dbfc5245964a775b73030d5abf44e /crates/shirabe-external-packages/src/symfony/component/process/process.rs | |
| parent | 9389ddbf06f6d38445c277640cab7b2270057790 (diff) | |
| download | php-shirabe-7f606f36fef0c0467c3c0db3d0da33af486dae8a.tar.gz php-shirabe-7f606f36fef0c0467c3c0db3d0da33af486dae8a.tar.zst php-shirabe-7f606f36fef0c0467c3c0db3d0da33af486dae8a.zip | |
feat(port): add stub implementations of shirabe-external-packages
Diffstat (limited to 'crates/shirabe-external-packages/src/symfony/component/process/process.rs')
| -rw-r--r-- | crates/shirabe-external-packages/src/symfony/component/process/process.rs | 110 |
1 files changed, 110 insertions, 0 deletions
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<String>, + cwd: Option<String>, + env: Option<IndexMap<String, String>>, + input: Option<String>, + timeout: Option<f64>, + ) -> Self { + todo!() + } + + pub fn from_shell_commandline( + command: &str, + cwd: Option<&str>, + env: Option<IndexMap<String, String>>, + input: Option<String>, + timeout: Option<f64>, + ) -> Self { + todo!() + } + + pub fn set_timeout(&mut self, timeout: Option<f64>) -> &mut Self { + todo!() + } + + pub fn set_env(&mut self, env: IndexMap<String, String>) -> &mut Self { + todo!() + } + + pub fn set_input(&mut self, input: Option<String>) -> &mut Self { + todo!() + } + + pub fn run(&mut self, callback: Option<Box<dyn FnMut(&str, &str)>>) -> i64 { + todo!() + } + + pub fn must_run(&mut self, callback: Option<Box<dyn FnMut(&str, &str)>>) -> anyhow::Result<&mut Self> { + todo!() + } + + pub fn start(&mut self, callback: Option<Box<dyn FnMut(&str, &str)>>) { + todo!() + } + + pub fn wait(&mut self, callback: Option<Box<dyn FnMut(&str, &str)>>) -> i64 { + todo!() + } + + pub fn stop(&mut self, timeout: f64, signal: Option<i64>) -> Option<i64> { + 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<i64> { + todo!() + } + + pub fn get_exit_code_text(&self) -> Option<String> { + todo!() + } + + pub fn get_command_line(&self) -> String { + todo!() + } + + pub fn check_timeout(&self) -> anyhow::Result<()> { + todo!() + } + + pub fn get_timeout(&self) -> Option<f64> { + todo!() + } + + pub fn set_working_directory(&mut self, cwd: &str) -> &mut Self { + todo!() + } +} |
