Skip to content

Commit 2df1f73

Browse files
authored
chore: Refactor quiet mode print statements for clarity (#153)
1 parent 7b655ca commit 2df1f73

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

sedona-cli/src/command.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,9 @@ impl Command {
7070
Self::QuietMode(quiet) => {
7171
if let Some(quiet) = quiet {
7272
print_options.quiet = *quiet;
73-
println!(
74-
"Quiet mode set to {}",
75-
if print_options.quiet { "true" } else { "false" }
76-
);
73+
println!("Quiet mode set to {}", print_options.quiet);
7774
} else {
78-
println!(
79-
"Quiet mode is {}",
80-
if print_options.quiet { "true" } else { "false" }
81-
);
75+
println!("Quiet mode is {}", print_options.quiet);
8276
}
8377
Ok(())
8478
}
@@ -101,7 +95,7 @@ impl Command {
10195

10296
fn get_name_and_description(&self) -> (&'static str, &'static str) {
10397
match self {
104-
Self::Quit => ("\\q", "quit datafusion-cli"),
98+
Self::Quit => ("\\q", "quit sedonadb-cli"),
10599
Self::ListTables => ("\\d", "list tables"),
106100
Self::DescribeTableStmt(_) => ("\\d name", "describe table"),
107101
Self::Help => ("\\?", "help"),

0 commit comments

Comments
 (0)