Skip to main content

libgrite_cli/
lib.rs

1//! Programmatic CLI library for grite
2//!
3//! This crate exposes the command logic from the `grite` CLI as a reusable
4//! Rust library. It can be used by other Rust programs (e.g., multi-agent
5//! harnesses) to drive grite natively without shelling out to subprocesses.
6//!
7//! Each command module provides both synchronous and (with the `async` feature)
8//! asynchronous variants for heavy I/O operations.
9
10pub mod actor;
11pub mod context;
12pub mod context_cmd;
13pub mod daemon;
14pub mod db;
15pub mod dep;
16pub mod doctor;
17pub mod event_helper;
18pub mod export;
19pub mod init;
20pub mod issue;
21pub mod lock;
22pub mod rebuild;
23pub mod snapshot;
24pub mod sync;
25
26#[cfg(feature = "async")]
27pub mod async_wrappers;
28
29/// Shared option and result types for all commands.
30pub mod types;
31
32/// AGENTS.md template content.
33pub mod agents_md;
34
35pub use context::GriteContext;
36pub use types::*;
37
38/// Re-export core error type for convenience.
39pub use libgrite_core::GriteError;