[PR #1321] [MERGED] feat(cli): ability to validate config and exit #1299

Closed
opened 2026-05-22 21:56:10 +01:00 by JakeStanger · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/JakeStanger/ironbar/pull/1321
Author: @JakeStanger
Created: 1/4/2026
Status: Merged
Merged: 1/4/2026
Merged by: @JakeStanger

Base: masterHead: feat/cli-validate-config


📝 Commits (1)

  • 2c1b2a3 feat(cli): ability to validate config and exit

📊 Changes

4 files changed (+59 additions, -3 deletions)

View changed files

📝 src/cli.rs (+8 -0)
📝 src/config/mod.rs (+24 -2)
📝 src/error.rs (+1 -0)
📝 src/main.rs (+26 -1)

📄 Description

Adds new -v --validate-config CLI argument:

Validate the loaded config and CSS path, and exit immediately. Exits with code 0 if config is valid, or 1 if invalid. Pass arg a second time to fail on warnings.
Any errors or warnings are logged regardless of mode.


🔄 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/JakeStanger/ironbar/pull/1321 **Author:** [@JakeStanger](https://github.com/JakeStanger) **Created:** 1/4/2026 **Status:** ✅ Merged **Merged:** 1/4/2026 **Merged by:** [@JakeStanger](https://github.com/JakeStanger) **Base:** `master` ← **Head:** `feat/cli-validate-config` --- ### 📝 Commits (1) - [`2c1b2a3`](https://github.com/JakeStanger/ironbar/commit/2c1b2a3ef687502c3c4869787c154708c909f008) feat(cli): ability to validate config and exit ### 📊 Changes **4 files changed** (+59 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/cli.rs` (+8 -0) 📝 `src/config/mod.rs` (+24 -2) 📝 `src/error.rs` (+1 -0) 📝 `src/main.rs` (+26 -1) </details> ### 📄 Description Adds new `-v --validate-config` CLI argument: > Validate the loaded config and CSS path, and exit immediately. Exits with code `0` if config is valid, or `1` if invalid. Pass arg a second time to fail on warnings. Any errors or warnings are logged regardless of mode. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
JakeStanger 2026-05-22 21:56:10 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#1299
No description provided.