dominikh / go-augeas

Go bindings for augeas
MIT License
21 stars 7 forks source link

Flags are wrong #6

Closed raphink closed 8 years ago

raphink commented 8 years ago
    aug, _ := augeas.New("/", "", augeas.None)
    v, _ := aug.Get("/augeas/save")
    log.Println(v)

prints backup. Using augeas.Backup prints newfile, etc.

raphink commented 8 years ago

As a result, augeas.None saves as backup instead of saving to the same file, and using augeas.SaveNewFile is very slow because it causes Augeas to typecheck all its lenses.

dominikh commented 8 years ago

Closed by 09517007e3a091173c283147529ed1de94b105d1