diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-24 21:10:48 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-24 21:11:03 +0900 |
| commit | a8f115666344abe3b606a4a65595ca301e7ac08a (patch) | |
| tree | 9af244392d41542fae74ceab1be0b8fb473bdd46 /crates/shirabe/src/command/home_command.rs | |
| parent | 6dcc2125974e350d1844c5ce1bb3562e224f3435 (diff) | |
| download | php-shirabe-a8f115666344abe3b606a4a65595ca301e7ac08a.tar.gz php-shirabe-a8f115666344abe3b606a4a65595ca301e7ac08a.tar.zst php-shirabe-a8f115666344abe3b606a4a65595ca301e7ac08a.zip | |
refactor(process): take cwd as Option<&str> instead of IntoExecCwd
Replace the generic cwd parameter backed by the IntoExecCwd trait with a
concrete Option<&str> across execute/execute_args/execute_tty/execute_async.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/command/home_command.rs')
| -rw-r--r-- | crates/shirabe/src/command/home_command.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/shirabe/src/command/home_command.rs b/crates/shirabe/src/command/home_command.rs index b3bb3ff..081ce2d 100644 --- a/crates/shirabe/src/command/home_command.rs +++ b/crates/shirabe/src/command/home_command.rs @@ -92,22 +92,22 @@ impl HomeCommand { let _ = process.execute( PhpMixed::from(vec!["start", "\"web\"", "explorer", url]), (), - (), + None, ); return; } let linux = process - .execute(PhpMixed::from(vec!["which", "xdg-open"]), (), ()) + .execute(PhpMixed::from(vec!["which", "xdg-open"]), (), None) .unwrap_or(1); let osx = process - .execute(PhpMixed::from(vec!["which", "open"]), (), ()) + .execute(PhpMixed::from(vec!["which", "open"]), (), None) .unwrap_or(1); if linux == 0 { - let _ = process.execute(PhpMixed::from(vec!["xdg-open", url]), (), ()); + let _ = process.execute(PhpMixed::from(vec!["xdg-open", url]), (), None); } else if osx == 0 { - let _ = process.execute(PhpMixed::from(vec!["open", url]), (), ()); + let _ = process.execute(PhpMixed::from(vec!["open", url]), (), None); } else { self.get_io().write_error(&format!( "No suitable browser opening command found, open yourself: {}", |
