fix syntax highlight by using tempfile.yaml over tempfile

Bel LaPointe 2021-12-31 22:46:49 -05:00
parent b82f11c248
commit 15c5f03ccf
1 changed files with 2 additions and 2 deletions

View File

@ -57,8 +57,8 @@ func edit(dry bool, filepath string) error {
g.Close() g.Close()
} }
f.Close() f.Close()
tempFile = f.Name() tempFile = f.Name() + ".yaml"
return nil return os.Rename(f.Name(), tempFile)
} }
vi := func() error { vi := func() error {
bin := "vim" bin := "vim"