Skip to content

Add validation checking command#5

Merged
yuk1ty merged 1 commit into
mainfrom
develop/validation-checker-command
Jul 15, 2026
Merged

Add validation checking command#5
yuk1ty merged 1 commit into
mainfrom
develop/validation-checker-command

Conversation

@yuk1ty

@yuk1ty yuk1ty commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Background

I implemented a command to validate configuration files for herdr-spreader. When a configuration file contained any errors, it was quite difficult to understand why it failed. I thought it would be better to check the files in advance using a validate command, and at the same time, I wanted the validation to run during the apply process so that any configuration errors could be identified before the changes are applied.

Changes

  • Implemented the validate command. This is available only in standalone mode.
  • The validation logic executed within the validate command is now also called during the apply process.

@yuk1ty
yuk1ty force-pushed the develop/validation-checker-command branch 2 times, most recently from f0c8eb1 to 6d92093 Compare July 12, 2026 06:33
@yuk1ty
yuk1ty marked this pull request as ready for review July 15, 2026 13:29
- Add validation checking phase and cli command
- Refactor config loading to separate reading from parsing and validation
- Remove validate subcommand plugin (results only available via notification, unintuitive for users); keep validate.rs as pre-check in apply path
@yuk1ty
yuk1ty force-pushed the develop/validation-checker-command branch from de51a30 to 9efdb9e Compare July 15, 2026 14:49
@yuk1ty
yuk1ty merged commit 397223e into main Jul 15, 2026
2 checks passed
@yuk1ty
yuk1ty deleted the develop/validation-checker-command branch July 15, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant