Skip to main content

clawless_core/
lib.rs

1#![cfg_attr(not(doctest),doc = include_str!("../README.md"))]
2
3pub mod cancellation;
4pub mod context;
5pub mod event;
6pub mod output;
7pub mod process;
8pub mod prompt;
9
10// Signal-to-cancellation adapter used by the `main!()` macro expansion
11#[doc(hidden)]
12pub mod signal;
13
14/// A prelude module to easily import Clawless's core types and traits
15///
16/// This module re-exports the most commonly used items from the clawless-core crate. By importing
17/// everything from this module, users can conveniently access the necessary types and traits to
18/// define and run commands without needing to import each item individually.
19pub mod prelude {
20    pub use super::cancellation::Cancellation;
21    pub use super::context::{Context, ContextError, CurrentWorkingDirectory, Interactivity};
22    pub use super::process::{Execution, Invocation, Process};
23    pub use super::prompt::{Confirmation, Prompt};
24}