This makes it easier to work with tools which return a list of file to format, e.g. to only handle files which have changed in a PR.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/apple/pkl/pull/1215
**Author:** [@srueg](https://github.com/srueg)
**Created:** 9/19/2025
**Status:** ✅ Merged
**Merged:** 9/19/2025
**Merged by:** [@stackoverflow](https://github.com/stackoverflow)
**Base:** `main` ← **Head:** `srueg/format-multiple`
---
### 📝 Commits (1)
- [`712a235`](https://github.com/apple/pkl/commit/712a235b3386b73ae236b8bd41a52eeee4f3a70d) Allow formatting multiple files/directories
### 📊 Changes
**4 files changed** (+27 additions, -15 deletions)
<details>
<summary>View changed files</summary>
📝 `pkl-cli/src/main/kotlin/org/pkl/cli/CliFormatterApply.kt` (+5 -2)
📝 `pkl-cli/src/main/kotlin/org/pkl/cli/CliFormatterCheck.kt` (+2 -2)
📝 `pkl-cli/src/main/kotlin/org/pkl/cli/CliFormatterCommand.kt` (+11 -5)
📝 `pkl-cli/src/main/kotlin/org/pkl/cli/commands/FormatterCommand.kt` (+9 -6)
</details>
### 📄 Description
This makes it easier to work with tools which return a list of file to format, e.g. to only handle files which have changed in a PR.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/1215
Author: @srueg
Created: 9/19/2025
Status: ✅ Merged
Merged: 9/19/2025
Merged by: @stackoverflow
Base:
main← Head:srueg/format-multiple📝 Commits (1)
712a235Allow formatting multiple files/directories📊 Changes
4 files changed (+27 additions, -15 deletions)
View changed files
📝
pkl-cli/src/main/kotlin/org/pkl/cli/CliFormatterApply.kt(+5 -2)📝
pkl-cli/src/main/kotlin/org/pkl/cli/CliFormatterCheck.kt(+2 -2)📝
pkl-cli/src/main/kotlin/org/pkl/cli/CliFormatterCommand.kt(+11 -5)📝
pkl-cli/src/main/kotlin/org/pkl/cli/commands/FormatterCommand.kt(+9 -6)📄 Description
This makes it easier to work with tools which return a list of file to format, e.g. to only handle files which have changed in a PR.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.