diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-16 21:59:35 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-19 22:17:11 +0900 |
| commit | fd733a87364b877d5e66b4973bd61b5379ec4d61 (patch) | |
| tree | 64bd6c37ca1c33581a851eba22e4261bf5b62b49 /crates/shirabe/src/main.rs | |
| parent | 7f3171b14a89762b2f0c71969d7243f2297af7c9 (diff) | |
| download | php-shirabe-fd733a87364b877d5e66b4973bd61b5379ec4d61.tar.gz php-shirabe-fd733a87364b877d5e66b4973bd61b5379ec4d61.tar.zst php-shirabe-fd733a87364b877d5e66b4973bd61b5379ec4d61.zip | |
feat(command): implement Symfony Command
Diffstat (limited to 'crates/shirabe/src/main.rs')
| -rw-r--r-- | crates/shirabe/src/main.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/crates/shirabe/src/main.rs b/crates/shirabe/src/main.rs index 6281ddd..f179c52 100644 --- a/crates/shirabe/src/main.rs +++ b/crates/shirabe/src/main.rs @@ -14,8 +14,14 @@ fn main() { ); // run the command application - let mut application = Application::new("Composer".to_string(), String::new()); - let result = application.run(None, None); + let application = match Application::new_shared("Composer".to_string(), String::new()) { + Ok(application) => application, + Err(e) => { + eprintln!("{}", e); + std::process::exit(1); + } + }; + let result = Application::run(&application, None, None); run_shutdown_functions(); if let Err(e) = result { eprintln!("{}", e); |
