1#![allow(clippy::single_component_path_imports)]
23mod any_value;
4pub(crate) mod flat_map;
5pub(crate) mod flat_set;
6mod graph;
7mod id;
8mod str_to_bool;
910pub use self::id::Id;
1112pub(crate) use self::any_value::AnyValue;
13pub(crate) use self::any_value::AnyValueId;
14pub(crate) use self::flat_map::Entry;
15pub(crate) use self::flat_map::FlatMap;
16pub(crate) use self::flat_set::FlatSet;
17pub(crate) use self::graph::ChildGraph;
18pub(crate) use self::str_to_bool::str_to_bool;
19pub(crate) use self::str_to_bool::FALSE_LITERALS;
20pub(crate) use self::str_to_bool::TRUE_LITERALS;
2122pub(crate) mod color;
2324pub(crate) const SUCCESS_CODE: i32 = 0;
25// While sysexists.h defines EX_USAGE as 64, this doesn't seem to be used much in practice but
26// instead 2 seems to be frequently used.
27// Examples
28// - GNU `ls` returns 2
29// - Python's `argparse` returns 2
30pub(crate) const USAGE_CODE: i32 = 2;
3132#[cfg(not(feature = "unicode"))]
33pub(crate) fn eq_ignore_case(left: &str, right: &str) -> bool {
34 left.eq_ignore_ascii_case(right)
35}
3637#[cfg(feature = "unicode")]
38pub(crate) use unicase::eq as eq_ignore_case;