Skip to content

Commit d5fa467

Browse files
jszobodyclaudehappy-otter
committed
Remove unnecessary 'from' check for copy command in shell
The shell copy command always uses current context as source, users never specify a separate 'from'. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
1 parent 58879ef commit d5fa467

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Shell/CommandExecutor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ protected function addContextIfNeeded(string $command, array &$input): void
105105
$input['--vault'] = $this->context->getVault();
106106
}
107107

108-
// Special handling for copy command's 'from' context
109-
if ($command === 'copy' && !isset($input['--from'])) {
108+
// Copy command always uses current context as 'from'
109+
if ($command === 'copy') {
110110
$input['--from'] = sprintf(
111111
"%s:%s",
112112
$this->context->getVault(),

0 commit comments

Comments
 (0)