Skip to content

Commit 6865fe9

Browse files
committed
minor #440 Improved visibility for updated or created entities (primus852)
This PR was merged into the 1.0-dev branch. Discussion ---------- Improved visibility for updated or created entities Commits ------- 21c4183 Higher visibility for updated or created entities
2 parents 91fbc2d + 21c4183 commit 6865fe9

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)