- moves terminal into currentprocess abstraction, because termcolor doesn't accept a file handle, rather it takes an enum indirectly referencing the global state of stdout/stderr. - provides write/fg/bg/locked etc as before - abstracts over TestWriter, or termcolor's own concrete types - still permits completely terminal-free operation where desired (e.g. future JSON RPC on stdin/stdout) Signed-off-by: hi-rustin <rustin.liu@gmail.com> Signed-off-by: Robert Collins <robertc@robertcollins.net>
15 lines
279 B
Rust
15 lines
279 B
Rust
/// The CLI specific code lives in the cli module and sub-modules.
|
|
#[macro_use]
|
|
pub mod log;
|
|
pub mod common;
|
|
mod download_tracker;
|
|
pub mod errors;
|
|
mod help;
|
|
mod job;
|
|
mod markdown;
|
|
pub mod proxy_mode;
|
|
pub mod rustup_mode;
|
|
pub mod self_update;
|
|
pub mod setup_mode;
|
|
mod topical_doc;
|