Explorar el Código

updated method name in cli-utils

max furman hace 5 años
padre
commit
c8560b4854
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      templates/templates.go

+ 1 - 1
templates/templates.go

@@ -268,7 +268,7 @@ func (o *Output) Write() error {
 	case Snippet:
 	case Snippet:
 		return fileutil.WriteSnippet(path, o.Content, 0600)
 		return fileutil.WriteSnippet(path, o.Content, 0600)
 	case Line:
 	case Line:
-		return fileutil.WriteLine(path, o.Content, 0600)
+		return fileutil.PrependLine(path, o.Content, 0600)
 	default:
 	default:
 		return errors.Errorf("unexpected output template type %s", string(o.Type))
 		return errors.Errorf("unexpected output template type %s", string(o.Type))
 	}
 	}