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 r#const;
11mod fmt;
12mod help;
13mod logger;
14mod publish;
15mod sync;
16mod version;
17
18pub use {
19    bump::*, command::*, config::*, r#const::*, fmt::*, help::*, logger::*, publish::*, sync::*,
20    version::*,
21};
22
23pub(crate) use std::{
24    collections::HashMap,
25    env::args,
26    io,
27    path::{Path, PathBuf},
28    process::Stdio,
29    sync::{Arc, LazyLock},
30};
31
32pub(crate) use {
33    color_output::*,
34    log::{self, SetLoggerError},
35    lombok_macros::*,
36    regex::{Captures, Regex},
37    std::ffi::OsStr,
38    tokio::{
39        fs::{ReadDir, read_dir, read_to_string, write},
40        process::Command,
41        spawn,
42        sync::{Mutex, MutexGuard},
43        task::JoinHandle,
44        time::{Duration, sleep},
45    },
46    toml::Value,
47    toml_edit::{DocumentMut, Item, TableLike, TomlError, value},
48    which::which,
49};