| Crates.io | oxidizr-cli-core |
| lib.rs | oxidizr-cli-core |
| version | 0.1.1 |
| created_at | 2025-09-17 14:41:09.241497+00 |
| updated_at | 2025-09-18 18:32:55.302078+00 |
| description | Common helpers for oxidizr-* CLIs (API builder, prompts) |
| homepage | |
| repository | https://github.com/veighnsche/oxidizr-arch |
| max_upload_size | |
| id | 1843433 |
| size | 96,773 |
Common helpers for oxidizr-* CLIs.
This crate provides:
switchyard-fs APIs in a consistent wayoxidizr-arch and oxidizr-debuse oxidizr_cli_core::api::build_api;
use switchyard::policy::Policy;
fn main() {
// Choose or construct a Policy appropriate for your CLI.
let policy = Policy::default();
// Provide a lock file path for process-wide coordination.
let lock_file = std::path::PathBuf::from("/tmp/oxidizr.lock");
// Build a Switchyard instance with file-backed JSONL audit/facts sinks and defaults.
let api = build_api(policy, lock_file);
// Now you can plan/apply swaps, e.g. api.plan(...), api.apply(...).
}
Status: pre-1.0, unstable. See the main project repository for usage examples.
Links: