Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ functions.
* [perltidy](programs/perltidy.nix)
* [php-cs-fixer](programs/php-cs-fixer.nix)
* [pinact](programs/pinact.nix)
* [pkl](programs/pkl.nix)
* [prettier](programs/prettier.nix)
* [protolint](programs/protolint.nix)
* [qmlformat](programs/qmlformat.nix)
Expand Down
6 changes: 6 additions & 0 deletions examples/formatter-pkl.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Example generated by ../examples.sh
[formatter.pkl]
command = "pkl"
excludes = []
includes = ["*.pkl", "PklProject"]
options = ["format", "--write"]
18 changes: 18 additions & 0 deletions programs/pkl.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{ mkFormatterModule, ... }:
{
meta.maintainers = [ ];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you consider adding yourself as a maintainer, @tkoyasak?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, done! Added myself as a maintainer in 7ce7e62. Thanks for the review 🙏


imports = [
(mkFormatterModule {
name = "pkl";
args = [
"format"
"--write"
];
includes = [
"*.pkl"
"PklProject"
];
})
];
}