aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/outdated_command.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-22 04:38:26 +0900
committernsfisis <nsfisis@gmail.com>2026-06-22 04:55:34 +0900
commitffd3e239a56172d2a336fb4d6253c01f6b1a0100 (patch)
tree344b02702bafcb503806cec94d6433807e0ce5b0 /crates/shirabe/src/command/outdated_command.rs
parentc3bf6c567ba2eac2830fa6eddcf4fadf619eb17b (diff)
downloadphp-shirabe-ffd3e239a56172d2a336fb4d6253c01f6b1a0100.tar.gz
php-shirabe-ffd3e239a56172d2a336fb4d6253c01f6b1a0100.tar.zst
php-shirabe-ffd3e239a56172d2a336fb4d6253c01f6b1a0100.zip
refactor(console): introduce ApplicationHandle shared-ownership newtype
Collapse the dual Application API (static methods taking `&Rc<RefCell<Application>>` plus `&mut self` bridges via `shared()`) into a single handle type `ApplicationHandle(Rc<RefCell<Application>>)`, mirroring the Composer handle pattern. Methods that invoke command callbacks (add, run, do_run, base_run, base_do_run, do_run_command, add_commands, init) move to `impl ApplicationHandle` with short-scoped borrows; data-only methods and `impl BaseApplication` stay on `Application`. `shared()` now returns the handle, and `new_shared`/`init_shared` fold into `ApplicationHandle::new`/`init`. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/command/outdated_command.rs')
-rw-r--r--crates/shirabe/src/command/outdated_command.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/shirabe/src/command/outdated_command.rs b/crates/shirabe/src/command/outdated_command.rs
index 16a4ac5..3281723 100644
--- a/crates/shirabe/src/command/outdated_command.rs
+++ b/crates/shirabe/src/command/outdated_command.rs
@@ -227,10 +227,7 @@ impl Command for OutdatedCommand {
.shared()
};
- Ok(
- crate::console::application::Application::run(&application, Some(input), Some(output))?
- as i64,
- )
+ Ok(application.run(Some(input), Some(output))? as i64)
}
fn initialize(