From b299a0c9b66523b9630b4cf6d3dca1509c3692b5 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 5 Jun 2026 05:53:30 +0900 Subject: feat(command): wire do_execute for depends/prohibits commands Forward execute() to BaseDependencyCommand::do_execute, mirroring the PHP commands that delegate to parent::doExecute (inverted=true for prohibits). Add the missing BaseDependencyCommand impl on DependsCommand. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/src/command/prohibits_command.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'crates/shirabe/src/command/prohibits_command.rs') diff --git a/crates/shirabe/src/command/prohibits_command.rs b/crates/shirabe/src/command/prohibits_command.rs index 9b8132b..ff9328c 100644 --- a/crates/shirabe/src/command/prohibits_command.rs +++ b/crates/shirabe/src/command/prohibits_command.rs @@ -73,10 +73,12 @@ impl ProhibitsCommand { ); } - pub fn execute(&mut self, input: &dyn InputInterface, output: &dyn OutputInterface) -> i64 { - // TODO(phase-b): wire `do_execute` from BaseDependencyCommand trait - let _ = (input, output); - todo!() + pub fn execute( + &mut self, + input: &dyn InputInterface, + output: &dyn OutputInterface, + ) -> anyhow::Result { + self.do_execute(input, output, true) } } -- cgit v1.3.1