Skip to content

Commit d4920b7

Browse files
allow dead code in tui
1 parent c1fd7c7 commit d4920b7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tembo-cli/src/cmd/delete.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use crate::cli::context::{get_current_context, Environment, Target};
22
use crate::cli::docker::Docker;
3-
use crate::cli::tembo_config::InstanceSettings;
43
use crate::tui;
54
use crate::tui::confirmation;
65
use clap::Args;

tembo-cli/src/tui.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ pub fn clean_console() {
66
print!("{esc}c", esc = 27 as char);
77
}
88

9+
#[allow(dead_code)]
910
/// Prints a colored log to the console (defaults to `use tui::colors::salmon`)
1011
pub fn print_color(log: &str, color: Option<ColorfulRgb>) {
1112
let color = color.unwrap_or(colors::sql_u());
1213
println!("{}", log.color(color));
1314
}
14-
15+
#[allow(dead_code)]
1516
pub fn print_gradient(log: &str) {
1617
let gradient = GradientStr::gradient(
1718
log,
@@ -25,6 +26,7 @@ pub fn print_gradient(log: &str) {
2526
println!("{}", gradient);
2627
}
2728

29+
#[allow(dead_code)]
2830
pub fn label(log: &str) {
2931
println!("{} {}", "➜".bold(), colors::gradient_rainbow(log));
3032
}
@@ -46,6 +48,7 @@ pub fn error(log: &str) {
4648
);
4749
}
4850

51+
#[allow(dead_code)]
4952
pub fn warning(log: &str) {
5053
println!(
5154
"{} {}",
@@ -78,6 +81,7 @@ pub fn white_confirmation(log: &str) {
7881
);
7982
}
8083

84+
#[allow(dead_code)]
8185
/// Tembo branded gradient chevrons for printing singular output
8286
pub fn chevrons<'a>() -> GradientDisplay<'a, [RGB; 4]> {
8387
GradientStr::gradient(
@@ -129,6 +133,7 @@ pub mod colors {
129133
ColorfulRgb::new(255, 125, 127)
130134
}
131135

136+
#[allow(dead_code)]
132137
pub fn warning_light() -> ColorfulRgb {
133138
ColorfulRgb::new(255, 244, 228)
134139
}
@@ -137,6 +142,7 @@ pub mod colors {
137142
ColorfulRgb::new(233, 252, 135)
138143
}
139144

145+
#[allow(dead_code)]
140146
pub fn gradient_p<'a>(log: &'a str) -> GradientDisplay<'a, [RGB; 4]> {
141147
GradientStr::gradient(
142148
log,

0 commit comments

Comments
 (0)