aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/symfony/component/process
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe-external-packages/src/symfony/component/process')
-rw-r--r--crates/shirabe-external-packages/src/symfony/component/process/exception/mod.rs7
-rw-r--r--crates/shirabe-external-packages/src/symfony/component/process/exception/process_signaled_exception.rs13
-rw-r--r--crates/shirabe-external-packages/src/symfony/component/process/exception/process_timed_out_exception.rs13
-rw-r--r--crates/shirabe-external-packages/src/symfony/component/process/exception/runtime_exception.rs13
-rw-r--r--crates/shirabe-external-packages/src/symfony/component/process/executable_finder.rs22
-rw-r--r--crates/shirabe-external-packages/src/symfony/component/process/mod.rs9
-rw-r--r--crates/shirabe-external-packages/src/symfony/component/process/php_executable_finder.rs22
-rw-r--r--crates/shirabe-external-packages/src/symfony/component/process/process.rs116
8 files changed, 0 insertions, 215 deletions
diff --git a/crates/shirabe-external-packages/src/symfony/component/process/exception/mod.rs b/crates/shirabe-external-packages/src/symfony/component/process/exception/mod.rs
deleted file mode 100644
index 8d275c1..0000000
--- a/crates/shirabe-external-packages/src/symfony/component/process/exception/mod.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-pub mod process_signaled_exception;
-pub mod process_timed_out_exception;
-pub mod runtime_exception;
-
-pub use process_signaled_exception::*;
-pub use process_timed_out_exception::*;
-pub use runtime_exception::*;
diff --git a/crates/shirabe-external-packages/src/symfony/component/process/exception/process_signaled_exception.rs b/crates/shirabe-external-packages/src/symfony/component/process/exception/process_signaled_exception.rs
deleted file mode 100644
index 154a7a7..0000000
--- a/crates/shirabe-external-packages/src/symfony/component/process/exception/process_signaled_exception.rs
+++ /dev/null
@@ -1,13 +0,0 @@
-#[derive(Debug)]
-pub struct ProcessSignaledException {
- pub message: String,
- pub code: i64,
-}
-
-impl std::fmt::Display for ProcessSignaledException {
- fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
- write!(f, "{}", self.message)
- }
-}
-
-impl std::error::Error for ProcessSignaledException {}
diff --git a/crates/shirabe-external-packages/src/symfony/component/process/exception/process_timed_out_exception.rs b/crates/shirabe-external-packages/src/symfony/component/process/exception/process_timed_out_exception.rs
deleted file mode 100644
index cbcdaa4..0000000
--- a/crates/shirabe-external-packages/src/symfony/component/process/exception/process_timed_out_exception.rs
+++ /dev/null
@@ -1,13 +0,0 @@
-#[derive(Debug)]
-pub struct ProcessTimedOutException {
- pub message: String,
- pub code: i64,
-}
-
-impl std::fmt::Display for ProcessTimedOutException {
- fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
- write!(f, "{}", self.message)
- }
-}
-
-impl std::error::Error for ProcessTimedOutException {}
diff --git a/crates/shirabe-external-packages/src/symfony/component/process/exception/runtime_exception.rs b/crates/shirabe-external-packages/src/symfony/component/process/exception/runtime_exception.rs
deleted file mode 100644
index 3ac2c8b..0000000
--- a/crates/shirabe-external-packages/src/symfony/component/process/exception/runtime_exception.rs
+++ /dev/null
@@ -1,13 +0,0 @@
-#[derive(Debug)]
-pub struct RuntimeException {
- pub message: String,
- pub code: i64,
-}
-
-impl std::fmt::Display for RuntimeException {
- fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
- write!(f, "{}", self.message)
- }
-}
-
-impl std::error::Error for RuntimeException {}
diff --git a/crates/shirabe-external-packages/src/symfony/component/process/executable_finder.rs b/crates/shirabe-external-packages/src/symfony/component/process/executable_finder.rs
deleted file mode 100644
index ae8e5dc..0000000
--- a/crates/shirabe-external-packages/src/symfony/component/process/executable_finder.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-#[derive(Debug)]
-pub struct ExecutableFinder;
-
-impl Default for ExecutableFinder {
- fn default() -> Self {
- Self::new()
- }
-}
-
-impl ExecutableFinder {
- pub fn new() -> Self {
- todo!()
- }
-
- pub fn add_suffix(&mut self, _suffix: &str) {
- todo!()
- }
-
- pub fn find(&self, _name: &str, _default: Option<&str>, _dirs: &[String]) -> Option<String> {
- todo!()
- }
-}
diff --git a/crates/shirabe-external-packages/src/symfony/component/process/mod.rs b/crates/shirabe-external-packages/src/symfony/component/process/mod.rs
deleted file mode 100644
index 6dd64e1..0000000
--- a/crates/shirabe-external-packages/src/symfony/component/process/mod.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-pub mod exception;
-pub mod executable_finder;
-pub mod php_executable_finder;
-pub mod process;
-
-pub use exception::*;
-pub use executable_finder::*;
-pub use php_executable_finder::*;
-pub use process::*;
diff --git a/crates/shirabe-external-packages/src/symfony/component/process/php_executable_finder.rs b/crates/shirabe-external-packages/src/symfony/component/process/php_executable_finder.rs
deleted file mode 100644
index 0346d10..0000000
--- a/crates/shirabe-external-packages/src/symfony/component/process/php_executable_finder.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-#[derive(Debug)]
-pub struct PhpExecutableFinder;
-
-impl Default for PhpExecutableFinder {
- fn default() -> Self {
- Self::new()
- }
-}
-
-impl PhpExecutableFinder {
- pub fn new() -> Self {
- todo!()
- }
-
- pub fn find(&self, _include_args: bool) -> Option<String> {
- todo!()
- }
-
- pub fn find_arguments(&self) -> Vec<String> {
- todo!()
- }
-}
diff --git a/crates/shirabe-external-packages/src/symfony/component/process/process.rs b/crates/shirabe-external-packages/src/symfony/component/process/process.rs
deleted file mode 100644
index 227606b..0000000
--- a/crates/shirabe-external-packages/src/symfony/component/process/process.rs
+++ /dev/null
@@ -1,116 +0,0 @@
-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!()
- }
-
- pub fn set_tty(&mut self, _tty: bool) -> anyhow::Result<&mut Self> {
- todo!()
- }
-}