Commit Graph

3 Commits

Author SHA1 Message Date
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
Andika Demas Riyandi
3ad67a3851
adding working directory option on prjfmt.toml for each formatter (#59)
* adding working directory option on prjfmt.toml for each formatter

* rename workdir into work_dir

* switch from xshell into process::Command

* fix unordered command_context by changing to BTreeMap
2021-02-19 17:02:33 +01:00
Andika Demas Riyandi
d58362ca3a
Detect mtimes file after formatting (#50)
* Detect mtimes file after formatting

* fix test

* remove all .as_path() function
2021-02-11 15:54:10 +01:00