fix syntax highlight by using tempfile.yaml over tempfile
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user