Skip to content

Commit

Permalink
add +/- context to config:edit output
Browse files Browse the repository at this point in the history
  • Loading branch information
jdowning authored and fivetanley committed Jan 5, 2021
1 parent 20a1b78 commit 485f2d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/config/src/commands/config/edit.ts
Expand Up @@ -55,10 +55,10 @@ function showDiff(from: Config, to: Config) {
for (const k of allKeys(from, to)) {
if (from[k] === to[k]) continue
if (k in from) {
cli.log(color.red(`${k}=${quote(from[k])}`))
cli.log(color.red(`- ${k}=${quote(from[k])}`))
}
if (k in to) {
cli.log(color.green(`${k}=${quote(to[k])}`))
cli.log(color.green(`+ ${k}=${quote(to[k])}`))
}
}
}
Expand Down

0 comments on commit 485f2d4

Please sign in to comment.