Skip to content

Commit

Permalink
Fix diff header for fix command
Browse files Browse the repository at this point in the history
Old Output
```
~>  ./packer-sdc fix -diff ../../../packer
--- /home/vagrant/Development/packer/go.mod
+++ /home/vagrant/Development/packer/go.mod-fixed
@@ -213,3 +213,5 @@
 )

```

New Output
```
~>  ./packer-sdc fix -diff ../../../packer
--- /home/vagrant/Development/packer/go.mod
+++ Fixed: /home/vagrant/Development/packer/go.mod
@@ -213,3 +213,5 @@
 )

```
  • Loading branch information
nywilken committed Jul 18, 2023
1 parent 7d3a4b2 commit 2b9991b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/packer-sdc/internal/fix/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func processFiles(rootDir string, showDiff bool) error {

if showDiff {
for filename, fixedData := range fixedFiles {
diff.Text(filename, filename+"fixed", string(srcFiles[filename]), string(fixedData), os.Stdout)
diff.Text(filename, "Fixed: "+filename, string(srcFiles[filename]), string(fixedData), os.Stdout)
}
return nil
}
Expand Down

0 comments on commit 2b9991b

Please sign in to comment.