From fd733a87364b877d5e66b4973bd61b5379ec4d61 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 16 Jun 2026 21:59:35 +0900 Subject: feat(command): implement Symfony Command --- crates/shirabe/src/main.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'crates/shirabe/src/main.rs') 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); -- cgit v1.3.1