changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > core / rust/lib/util/src/cli.rs

changeset 71: 97c99e44a22f
parent: 55fbe0e45b62
author: ellis <ellis@rwest.io>
date: Sun, 03 Dec 2023 18:44:14 -0500
permissions: -rw-r--r--
description: rustup tomfoolery - installer and lib/dl
1 //! cli module
2 #[cfg(feature = "bs")]
3 pub use clap_complete;
4 pub use indicatif;
5 pub use terminal_clipboard;
6 
7 pub fn log_level_str_from_cli(b: u8) -> &'static str {
8  match b {
9  0 => "info",
10  1 => "debug",
11  _ => "trace",
12  }
13 }