Skip to content

Commit

Permalink
Release v0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zimbatm committed Dec 1, 2022
1 parent b06edc3 commit cead314
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 13 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@

0.5.0 / 2022-12-01
==================

* docs: fix typos (#183)
* docs: formatters-spec: clarify syntax and semantics rule
* docs: terraform 1.3.0 accepts a list of files
* docs: treefmt.toml: add warning for sh -c
* feat: add --formatters option (#168)
* feat: add pre-commit contrib script (#166)
* feat: add support for `.treefmt.toml` (#172)
* feat: hard fail on missing tools (#189)
* feat: lazily create the cache directory (#174)
* feat: treefmt.withConfig (#169, #181)
* fix: ignore .direnv (#175)
* nix: move ci dependencies to the devShell (#161)
* nix: switch to `flake-parts` (#176)

0.4.1 / 2022-05-03
==================

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "treefmt"
version = "0.4.1"
version = "0.5.0"
edition = "2018"
description = "one CLI to format the code tree"
license = "MIT"
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,33 +38,33 @@ quite tricky.
## Usage

`$ treefmt --help`

```
treefmt 0.4.1
treefmt 0.5.0
✨ format all your language!
USAGE:
treefmt [FLAGS] [OPTIONS] [paths]...
treefmt [FLAGS] [OPTIONS] [--] [paths]...
FLAGS:
--allow-missing-formatter Do not exit with error if a configured formatter is missing
--clear-cache Clear the evaluation cache. Use in case the cache is not precise enough
--clear-cache Reset the evaluation cache. Use in case the cache is not precise enough
--fail-on-change Exit with error if any changes were made. Useful for CI
-h, --help Prints help information
--init Create a new treefmt.toml
--no-cache Ignore the evaluation cache entirely. Useful for CI
-q, --quiet No output printed to stderr
--stdin Format the content passed in stdin
-V, --version Prints version information
-v, --verbose Log verbosity is based off the number of v used
OPTIONS:
--config-file <config-file> Run with the specified config file, which is not required to be in the tree to be
formatted
-f, --formatters <formatters>... Select formatters name to apply. Defaults to all formatters
--tree-root <tree-root> Set the path to the tree root directory. Defaults to the folder holding the
treefmt.toml file
-C <work-dir> Run as if treefmt was started in <work-dir> instead of the current working
directory [default: .]
--config-file <config-file> Run with the specified config file, which is not required to be in the tree to
be formatted
-f, --formatters <formatters>... Select formatters name to apply. Defaults to all formatters
--tree-root <tree-root> Set the path to the tree root directory. Defaults to the folder holding the
treefmt.toml file [env: PRJ_ROOT=]
-C <work-dir> Run as if treefmt was started in <work-dir> instead of the current working
directory [default: .]
ARGS:
<paths>... Paths to format. Defaults to formatting the whole tree
Expand Down

0 comments on commit cead314

Please sign in to comment.