7 Commits

Author SHA1 Message Date
John Bartholomew
154626d157 print names of reformatted files when using jsonnetfmt --test or --in-place
Fixes #768

Also the go-jsonnet version of https://github.com/google/jsonnet/issues/365
2026-03-08 20:16:33 +00:00
John Bartholomew
71c8de23c2 chore: regenerate Bazel files, use go.mod to specify Go SDK version
This brings things more into line with modern conventions for
build target names, and means we have fewer sources of truth for
the minimum Go version that's needed.
2026-02-18 23:06:15 +00:00
Jesse
2655afd2bd
memory align structs (#635)
feat: align most structs and add lint rule to enforce struct alignment
2022-10-19 06:19:15 +01:00
Simon Let
415d036e5e Put AddPlusObject behind an option, rename FixPlusObject 2021-04-29 22:55:07 +02:00
Robert Vollmert
9e6b0d15b7 jsonnetfmt --help: Indent subsection and break long lines
For consistency of the formatting changes to jsonnet --help.
Minor phrasing and punctuation changes for consistency.
2020-07-02 23:04:34 +02:00
sh0rez
4f4aa80dd7 feat(api): expose formatter
Exposes what I consider a good public API from the `internal/formatter`
package.

Having a go-native formatter is an awesome thing, especially because it
allows shipping the formatter as part of other projects. It's also fair
to keep the formatter's code in `internal`, yet third party projects
should have a way to use relevant parts of it.
2020-03-31 20:43:25 +02:00
Dave Cunningham
724650d358
Add native golang formatter (#388)
Add native golang formatter
2020-03-10 22:19:49 +00:00