1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//! The smop prelude.
//!
//! This module re-exports the most commonly used items for scripting.
//! Import with `use smop::prelude::*` to get everything you need.
//!
//! # What's included
//!
//! - Error handling: `anyhow::{anyhow, bail, ensure, Context, Result}`
//! - Serialization: `serde::{Serialize, Deserialize}`
//! - Core modules: `env`, `fs`, `path`, `sh`
//! - Feature-gated modules: `http`, `print`, `cli`
//! - Macros: `success!`, `warn!`, `error!`
//!
//! # Examples
//!
//! ```rust,no_run
//! use smop::prelude::*;
//!
//! fn main() -> Result<()> {
//! // Environment variables
//! let port: u16 = env::var_or("PORT", 8080);
//!
//! // File operations
//! let config = fs::read_string("config.txt")?;
//!
//! // Shell commands
//! sh::run("echo Hello")?;
//!
//! Ok(())
//! }
//! ```
// Error handling from anyhow
pub use ;
// Serialization
pub use ;
// Core modules
pub use crateenv;
pub use cratefs;
pub use cratepath;
pub use cratesh;
// Feature-gated modules
pub use cratehttp;
pub use crateprint;
pub use crate;
pub use cratetime;
pub use cratearchive;
// Re-export macros at crate root level, included via prelude
pub use crate::;