pub enum Command {
Run {
rules_dir: PathBuf,
payload: Option<String>,
payload_file: Option<PathBuf>,
output: Option<PathBuf>,
max_steps: usize,
},
Replay {
fact_log: PathBuf,
},
Diff {
a: PathBuf,
b: PathBuf,
},
Validate {
rules_dir: PathBuf,
},
VerifyChain {
fact_log: PathBuf,
},
AnchorKeygen {
output: Option<PathBuf>,
},
VerifyAnchors {
audit: PathBuf,
pubkey: Option<String>,
},
}Variants§
Run
Load and execute JSON rules (output a fact log)
Fields
Replay
Replay a fact log (pretty-print each Fact)
Diff
Compare two fact logs (aligned by FactId, not HashSet)
Validate
Validate JSON rule files (tier1 RuleValidator, syntactic + semantic validation)
VerifyChain
Verify fact log hash chain integrity (blake3, interoperable with evorule-governance)
AnchorKeygen
Generate a G-A1 audit anchor signing keypair (one-time ops)
Produces a private seed (32 bytes, 64 hex chars) and a public key (32 bytes, 64 hex chars).
Keep the private key secret; it is used to configure the auditor signing anchor. The public key
can be distributed to third parties for offline verification with verify-anchors.
VerifyAnchors
Verify G-A1 audit anchors offline (anti-repudiation)
Takes an audit export JSON produced by evorule-governance Auditor::export().
Verifies each anchor’s chain link and recomputes the payload signature with the public key,
proving the audit chain was actually produced by the private key holder.
Trait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for Command
impl Subcommand for Command
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand