Skip to main content

workflow_utils/
lib.rs

1//! Assorted helper utilities shared across the `workflow-rs` ecosystem,
2//! including error/result types, interactive CLI actions, command-line
3//! argument helpers, formatting, public IP lookup and semantic version
4//! parsing.
5
6/// Crate-wide error type.
7pub mod error;
8mod imports;
9/// Crate-wide [`Result`](result::Result) type alias.
10pub mod result;
11
12/// Trait for defining interactive, selectable CLI actions.
13pub mod action;
14/// Builder for assembling de-duplicated command-line argument lists.
15pub mod arglist;
16/// Human-readable value formatting helpers.
17pub mod format;
18/// Helpers for resolving the host's public IP address.
19pub mod ip;
20/// Semantic version parsing, comparison and crates.io lookup.
21pub mod version;
22
23/// Re-exports of the most commonly used modules for convenient glob imports.
24pub mod prelude {
25    pub use crate::action;
26    pub use crate::arglist;
27    pub use crate::format;
28    pub use crate::ip;
29    pub use crate::version;
30}