Expand description
CLI-based validation for external tool integration.
This module provides the Cli builder for creating validators that
execute external commands to validate generated content.
§Examples
ⓘ
use kkachi::recursive::cli;
// Single command
let v = cli("rustfmt").arg("--check").ext("rs");
// Multi-stage pipeline
let v = cli("rustfmt").arg("--check")
.then("rustc").arg("--emit=metadata").required()
.then("clippy")
.ext("rs");
// With environment variables
let v = cli("pulumi").arg("preview")
.env_from("GOOGLE_APPLICATION_CREDENTIALS")
.capture();Structs§
- Cli
- CLI validator builder.
- CliCapture
- Captured output from a CLI command.
- CliError
- A structured error extracted from CLI output.
- CliTool
- A CLI command wrapped as an agent-compatible
Tool.
Functions§
- cli
- Create a new CLI validator builder.