Commit Graph

3 Commits

Author SHA1 Message Date
Brian McGee
03cb08909f
docs: update content to reflect latest changes
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-11-08 09:57:36 +00:00
Brian McGee
fc88f9836a
feat: more stringent golangci-lint rules
Applies more stringent `golangci-lint` rules to the repository, borrowed from https://github.com/nix-community/go-nix.

Also fixes a bug where we were not returning errors when calling `walk.Reader.Read()` in `cmd/format`

Signed-off-by: Brian McGee <brian@bmcgee.ie>
Co-authored-by: Jeremy Fleischman <jeremyfleischman@gmail.com>
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-10-16 15:50:51 +01:00
Brian McGee
bac4a0d102
feat: replace kong with cobra/viper
`treefmt.toml` has been extended to include an entry for most of the flags that can be passed to `treefmt`.

In addition, values can now be specified via the environment, prefixed with `TREEFMT_`.

Finally, the order of precedence for value lookup has been fixed: flag -> env -> treefmt.toml.

Closes #351
2024-10-09 15:11:14 +01:00