zimbatm
7fa467bb3a
customlog: remove emojis
...
Emojis are useful at information compression. Here they just repeat the
same log level and reduce clarity.
Fixes #111
2021-05-13 22:29:52 +02:00
zimbatm
5ce49c01f6
fix cargo publish
2021-05-08 20:41:55 +02:00
zimbatm
5f16a36e63
Release v0.2.1
2021-05-08 20:31:01 +02:00
zimbatm
c70100ee00
ci: automate the release publication
...
This still requires us to create a release commit, tag and push it.
2021-05-08 20:30:35 +02:00
Jonas Chevalier
b25cfa461f
formatter: add rufo ( #113 )
2021-05-08 16:26:26 +00:00
Jonas Chevalier
c669ddb0da
README: improve description ( #108 )
2021-05-07 21:13:56 +02:00
Jonas Chevalier
4e10f88b6f
change default loglevel to INFO ( #109 )
2021-05-07 21:13:48 +02:00
zimbatm
0f719178f5
fmt
2021-05-07 20:43:50 +02:00
zimbatm
9d6538af18
README: add pre-commit to the related projects
2021-05-07 20:20:05 +02:00
zimbatm
6173e11662
Cargo.toml: fix metadata
2021-05-07 19:22:33 +02:00
zimbatm
c61f47f0f1
Release v0.2.0
2021-05-07 19:18:39 +02:00
zimbatm
c1b1b2f99b
lib: simplify expand_env
2021-05-07 16:25:05 +02:00
zimbatm
bcd58b36ec
support relative commands
...
command relative paths should be relative to the treefmt.toml folder.
2021-05-07 00:21:15 +02:00
zimbatm
f640dd9c9d
terraform fmt workaround
...
See #97
2021-05-07 00:21:06 +02:00
zimbatm
dc25c5a742
exclude CHANGELOG.md
2021-05-07 00:18:16 +02:00
zimbatm
f5e1e3166f
fmt
2021-05-06 22:05:35 +02:00
Andika Demas Riyandi
ca59a61d0c
Always expanding the path given in the treefmt.toml ( #107 )
...
* add cabal-fmt formatter
* always expand the path provided in treefmt.toml
* adding */ format in expanding path for string
* adding unit test for expand_if_path function
* Update src/lib.rs
* revert treefmt.toml
Co-authored-by: Jonas Chevalier <zimbatm@zimbatm.com>
2021-05-06 10:02:32 +02:00
Jonas Chevalier
29d7a8b225
Update formatters-spec.md
...
Thanks @nmattia
2021-05-03 20:43:21 +02:00
zimbatm
797b80e98d
Release v0.1.1
2021-04-24 14:13:24 +02:00
dependabot[bot]
16c2f3457e
build(deps): bump cachix/cachix-action from v9 to v10 ( #105 )
...
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action ) from v9 to v10.
- [Release notes](https://github.com/cachix/cachix-action/releases )
- [Commits](https://github.com/cachix/cachix-action/compare/v9...73e75d1a0cd4330597a571e8f9dedb41faa2fc4e )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-12 09:44:49 +02:00
zimbatm
4edd9dc581
fix clippy warnings
2021-04-11 14:32:42 +02:00
Basile Henry
63c58e4f55
Report formatter output on error ( #104 )
2021-04-11 12:30:51 +00:00
zimbatm
05f612bd08
Release v0.1.0
2021-04-10 11:31:12 +02:00
zimbatm
26da75638d
engine: fix elapsed reporting
...
Broken by #101
2021-04-10 11:28:04 +02:00
Andika Demas Riyandi
b113d53be3
Merge pull request #101 from numtide/output-formatter
...
Handling output formatter
2021-04-08 21:23:06 +07:00
Andika Demas Riyandi
fb8330c28e
Merge branch 'master' into output-formatter
2021-04-08 21:15:45 +07:00
Andika Demas Riyandi
ae7dc6a340
move error handling to fmt function
2021-04-08 20:43:22 +07:00
Andika Demas Riyandi
d3ade342bd
create match on formatter output
2021-04-08 13:33:26 +07:00
Andika Demas Riyandi
c3512d12b6
add Result when collecting formatter result
2021-04-07 18:41:03 +07:00
dependabot[bot]
2471526b01
build(deps): bump cachix/cachix-action from v8 to v9 ( #99 )
...
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action ) from v8 to v9.
- [Release notes](https://github.com/cachix/cachix-action/releases )
- [Commits](https://github.com/cachix/cachix-action/compare/v8...2689c27f57daedc905895d92ad18fe5ce470df9e )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-05 16:04:17 +02:00
dependabot[bot]
304780fad1
build(deps): bump cachix/install-nix-action from v12 to v13 ( #100 )
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from v12 to v13.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v12...8d6d5e949675fbadb765c6b1a975047fa5f09b27 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-05 11:17:52 +02:00
Andika Demas Riyandi
0df89fb260
treat exit status code > 0 as an error ( #98 )
...
* treat exit status code > 0 as an error
* adding success status check before matching status code
2021-04-01 09:59:39 +02:00
Andika Demas Riyandi
73f5f250b2
adding success status check before matching status code
2021-04-01 06:06:20 +07:00
Andika Demas Riyandi
ffba2a767d
treat exit status code > 0 as an error
2021-03-31 20:29:45 +07:00
zimbatm
751e598468
README: add super-linter to the related projects
2021-03-17 14:59:29 +01:00
zimbatm
8353f13aff
README: fix typo
2021-03-05 18:55:51 +01:00
zimbatm
cfa40248bd
formatter: clean the formatter path
...
In cases where the formatter path is relative, the "which" crate doesn't
remove the "./" in between.
2021-03-05 10:59:49 +01:00
Jonas Chevalier
8de1add053
implement --stdin ( #95 )
...
* implement --stdin
A first pass at making --stdin work
* use the tempfile crate
2021-03-05 10:49:21 +01:00
zimbatm
a6b43be8d3
README: fix link to formatter spec
2021-03-05 10:38:52 +01:00
Jonas Chevalier
babc297876
print files on --fail-on-change ( #96 )
...
* customlog: convert emoji to unicode escape
* engine: print reformatted files on failure
2021-03-05 09:29:09 +01:00
Jonas Chevalier
3dc5943e60
fix docs ( #94 )
...
* nix: simplify the code a bit
* docs: fix the website
Make the paths relative so they work on GitHub Pages. Fix the landing
page overriding the docs. Put the docs in the right sub-folder.
2021-03-03 13:45:46 +01:00
Lucas Desgouilles
d43994165d
update the eval cache by mutating it rather than cloning it ( #87 )
2021-03-03 11:51:23 +01:00
zimbatm
5a4516f37d
remove dead code
2021-03-03 11:33:11 +01:00
Jonas Chevalier
e7ccb2d8e5
customlog: use the log facade ( #90 )
...
Instead of calling CLOG directly, use the "log" crate on the producer
side, and then plug CLOG as a consumer. This allows for some nice
decoupling and the log macros are also nicer on the eye.
--log-level has disappeared for now
2021-03-03 11:22:50 +01:00
Jonas Chevalier
6b2d6fca2f
init: use std::include_bytes ( #91 )
...
Avoid the big fat string literal
2021-03-03 11:20:30 +01:00
Basile Henry
405d83ae5e
Add clang-format and stylish-haskell configs to the docs ( #88 )
2021-03-03 10:35:26 +01:00
Basile Henry
0ecbb2c870
Publish the docbook to GitHub Pages ( #89 )
...
* Build docs in nix
* Build docs in CI and update gh-pages
* Format nix
2021-03-03 10:34:57 +01:00
zimbatm
b7ba437171
fix clippy::pedantic warnings
2021-03-03 10:15:17 +01:00
zimbatm
c787831f2f
docs: add more compatibility notes
2021-03-02 19:11:54 +01:00
Jonas Chevalier
b202af5706
ci: test on macOS ( #85 )
2021-03-02 17:36:01 +01:00