Skip to content

Commit

Permalink
refactor(Commands): Use note instead of info for command line output
Browse files Browse the repository at this point in the history
- Replace `info` method with `note` method for command line output
- Improves clarity and consistency
  • Loading branch information
guanguans committed Jul 24, 2023
1 parent 11de1bc commit 45d4f46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Commands/CommitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function handle(): int
$this->option('retry-times'),
function ($attempts) use ($cachedDiff): string {
if ($attempts > 1) {
$this->output->info('retrying...');
$this->output->note('retrying...');
}

$originalMessages = $this->generatorManager
Expand Down Expand Up @@ -226,7 +226,7 @@ private function createProcess(array $command, ?string $cwd = null, ?array $env

return tap(new Process($command, $cwd, $env, $input, $timeout), function (Process $process): void {
if ($this->option('verbose')) {
$this->output->info($process->getCommandLine());
$this->output->note($process->getCommandLine());
}
});
}
Expand All @@ -241,7 +241,7 @@ private function getPrompt(string $cachedDiff): string
return (string) str($this->configManager->get("prompts.{$this->option('prompt')}"))
->replace($this->configManager->get('diff_mark'), $cachedDiff)
->when($this->option('verbose'), function (Stringable $prompt): Stringable {
$this->output->info((string) $prompt);
$this->output->note((string) $prompt);

return $prompt;
});
Expand Down

0 comments on commit 45d4f46

Please sign in to comment.