Skip to main content

crate_cli/
lib.rs

1//! crate-cli
2//!
3//! A command-line tool for managing Cargo package lifecycles:
4//! version bump, workspace dependency sync,
5//! members-ordered publish and code formatting.
6
7mod bump;
8mod command;
9mod config;
10mod fmt;
11mod help;
12mod logger;
13mod publish;
14mod sync;
15mod version;
16
17pub use {
18    bump::*, command::*, config::*, fmt::*, help::*, logger::*, publish::*, sync::*, version::*,
19};
20
21pub(crate) use std::{
22    collections::HashMap,
23    env::args,
24    io,
25    path::{Path, PathBuf},
26    process::Stdio,
27    sync::{Arc, LazyLock},
28};
29
30pub(crate) use {
31    color_output::*,
32    log::{self, SetLoggerError},
33    lombok_macros::*,
34    regex::{Captures, Regex},
35    std::ffi::OsStr,
36    tokio::{
37        fs::{ReadDir, read_dir, read_to_string, write},
38        process::Command,
39        spawn,
40        sync::{Mutex, MutexGuard},
41        task::JoinHandle,
42        time::{Duration, sleep},
43    },
44    toml::Value,
45    toml_edit::{DocumentMut, Item, TableLike, TomlError, Value as TomlEditValue, value},
46    which::which,
47};