[PR #1340] [MERGED] Change pkl format --write to exit 0 when formatting violations are found #1027

Closed
opened 2025-12-30 01:28:22 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/apple/pkl/pull/1340
Author: @HT154
Created: 12/3/2025
Status: Merged
Merged: 12/6/2025
Merged by: @HT154

Base: mainHead: pkl-format-write-exit-0


📝 Commits (1)

  • 5a2d639 Change pkl format --write to exit 0 when formatting violations are found

📊 Changes

2 files changed (+5 additions, -3 deletions)

View changed files

📝 docs/modules/pkl-cli/pages/index.adoc (+2 -2)
📝 pkl-cli/src/main/kotlin/org/pkl/cli/CliFormatterCommand.kt (+3 -1)

📄 Description

Does not change the behavior of invocations without --write.

Resolves #1324


🔄 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/1340 **Author:** [@HT154](https://github.com/HT154) **Created:** 12/3/2025 **Status:** ✅ Merged **Merged:** 12/6/2025 **Merged by:** [@HT154](https://github.com/HT154) **Base:** `main` ← **Head:** `pkl-format-write-exit-0` --- ### 📝 Commits (1) - [`5a2d639`](https://github.com/apple/pkl/commit/5a2d639d2a965a5e0ca0c99af29b5dccd2bdfa2b) Change `pkl format --write` to exit 0 when formatting violations are found ### 📊 Changes **2 files changed** (+5 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/modules/pkl-cli/pages/index.adoc` (+2 -2) 📝 `pkl-cli/src/main/kotlin/org/pkl/cli/CliFormatterCommand.kt` (+3 -1) </details> ### 📄 Description Does not change the behavior of invocations without `--write`. Resolves #1324 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 01:28:22 +01:00
adam closed this issue 2025-12-30 01:28:22 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pkl#1027