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;
7
8// Signal-to-cancellation adapter used by the `main!()` macro expansion
9#[doc(hidden)]
10pub mod signal;
11
12/// A prelude module to easily import Clawless's core types and traits
13///
14/// This module re-exports the most commonly used items from the clawless-core crate. By importing
15/// everything from this module, users can conveniently access the necessary types and traits to
16/// define and run commands without needing to import each item individually.
17pub mod prelude {
18 pub use super::cancellation::Cancellation;
19 pub use super::context::{Context, ContextError, CurrentWorkingDirectory};
20}