Refactored into multiple crates. Added the 'validate' subcommand

This commit is contained in:
Mick Grove 2026-01-28 22:24:35 -08:00
commit 1c45efde3e
4 changed files with 42 additions and 21 deletions

View file

@ -4,7 +4,8 @@ use std::path::PathBuf;
/// Directly validate a known secret against a rule's validator
#[derive(Args, Debug, Clone)]
pub struct ValidateArgs {
/// Rule ID or prefix to use for validation (e.g., kingfisher.opsgenie.1 or kingfisher.opsgenie)
/// Rule ID or prefix to use for validation (e.g., aws, opsgenie, or kingfisher.aws.2).
/// The `kingfisher.` prefix is optional for built-in rules.
#[arg(long, required = true)]
pub rule: String,