Skip to content

Commit 21c4183

Browse files
authored
Higher visibility for updated or created entities
1 parent f623e79 commit 21c4183

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/FileManager.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,16 @@ public function dumpFile(string $filename, string $content)
6161
$newFile = !$this->fileExists($filename);
6262
$existingContent = $newFile ? '' : file_get_contents($absolutePath);
6363

64-
$comment = $newFile ? 'created' : 'updated';
64+
$comment = $newFile ? '<fg=blue>created</>' : '<fg=yellow>updated</>';
6565
if ($existingContent === $content) {
66-
$comment = 'no change';
66+
$comment = '<fg=green>no change</>';
6767
}
6868

6969
$this->fs->dumpFile($absolutePath, $content);
7070

7171
if ($this->io) {
7272
$this->io->comment(sprintf(
73-
'<fg=green>%s</>: %s',
73+
'%s: %s',
7474
$comment,
7575
$this->relativizePath($filename)
7676
));

0 commit comments

Comments
 (0)