Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ functions.
* [dos2unix](programs/dos2unix.nix)
* [dprint](programs/dprint.nix)
* [dscanner](programs/dscanner.nix)
* [dyff-json](programs/dyff-json.nix)
* [dyff-yaml](programs/dyff-yaml.nix)
* [efmt](programs/efmt.nix)
* [elm-format](programs/elm-format.nix)
* [erlfmt](programs/erlfmt.nix)
Expand Down
6 changes: 6 additions & 0 deletions examples/formatter-dyff-json.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Example generated by ../examples.sh
[formatter.dyff-json]
command = "dyff"
excludes = []
includes = ["*.json"]
options = ["json", "--restructure", "--in-place"]
6 changes: 6 additions & 0 deletions examples/formatter-dyff-yaml.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Example generated by ../examples.sh
[formatter.dyff-yaml]
command = "dyff"
excludes = []
includes = ["*.yaml", "*.yml"]
options = ["yaml", "--restructure", "--in-place"]
17 changes: 17 additions & 0 deletions programs/dyff-json.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{ mkFormatterModule, ... }:
{
meta.maintainers = [ ];

imports = [
(mkFormatterModule {
name = "dyff-json";
package = "dyff";
args = [
"json"
"--restructure"
"--in-place"
];
includes = [ "*.json" ];
})
];
}
20 changes: 20 additions & 0 deletions programs/dyff-yaml.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{ mkFormatterModule, ... }:
{
meta.maintainers = [ ];

imports = [
(mkFormatterModule {
name = "dyff-yaml";
package = "dyff";
args = [
"yaml"
"--restructure"
"--in-place"
];
includes = [
"*.yaml"
"*.yml"
];
})
];
}