From 0b17152889f2096199a24a87df59ade2dca6e1a0 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 20 Jun 2026 21:40:32 +0900 Subject: feat(outdated): proxy execute to show via shared Application The execute() proxy was left as todo!(); wire it to the shared Application handle so `outdated` re-enters the run flow as `show -l`, matching PHP's $this->getApplication()->run(). Add Application::shared() to expose the new_shared self-reference and un-ignore run_outdated. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/src/command/outdated_command.rs | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'crates/shirabe/src/command/outdated_command.rs') diff --git a/crates/shirabe/src/command/outdated_command.rs b/crates/shirabe/src/command/outdated_command.rs index 22dd120..16a4ac5 100644 --- a/crates/shirabe/src/command/outdated_command.rs +++ b/crates/shirabe/src/command/outdated_command.rs @@ -214,10 +214,23 @@ impl Command for OutdatedCommand { )?; let input: Rc> = Rc::new(RefCell::new(input)); - // TODO(phase-c): proxying to ShowCommand via Application::run needs the shared shirabe - // Application handle (deferred with the Application shared-ownership work and registration). - let _ = (input, output); - todo!("outdated command proxy run pending shared Application handle") + + let application = { + let application = self + .get_application() + .expect("a proxy command is always attached to its application"); + let application = application.borrow(); + application + .as_any() + .downcast_ref::() + .expect("shirabe always installs its own Application") + .shared() + }; + + Ok( + crate::console::application::Application::run(&application, Some(input), Some(output))? + as i64, + ) } fn initialize( -- cgit v1.3.1