This is an automated email from the ASF dual-hosted git repository.
jiayu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/sedona-db.git
The following commit(s) were added to refs/heads/main by this push:
new 2df1f73 chore: Refactor quiet mode print statements for clarity (#153)
2df1f73 is described below
commit 2df1f7368201e4dbc874aa22324f91f5417337e0
Author: Martin Grigorov <[email protected]>
AuthorDate: Fri Sep 26 16:27:01 2025 +0300
chore: Refactor quiet mode print statements for clarity (#153)
---
sedona-cli/src/command.rs | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/sedona-cli/src/command.rs b/sedona-cli/src/command.rs
index 352700a..7897256 100644
--- a/sedona-cli/src/command.rs
+++ b/sedona-cli/src/command.rs
@@ -70,15 +70,9 @@ impl Command {
Self::QuietMode(quiet) => {
if let Some(quiet) = quiet {
print_options.quiet = *quiet;
- println!(
- "Quiet mode set to {}",
- if print_options.quiet { "true" } else { "false" }
- );
+ println!("Quiet mode set to {}", print_options.quiet);
} else {
- println!(
- "Quiet mode is {}",
- if print_options.quiet { "true" } else { "false" }
- );
+ println!("Quiet mode is {}", print_options.quiet);
}
Ok(())
}
@@ -101,7 +95,7 @@ impl Command {
fn get_name_and_description(&self) -> (&'static str, &'static str) {
match self {
- Self::Quit => ("\\q", "quit datafusion-cli"),
+ Self::Quit => ("\\q", "quit sedonadb-cli"),
Self::ListTables => ("\\d", "list tables"),
Self::DescribeTableStmt(_) => ("\\d name", "describe table"),
Self::Help => ("\\?", "help"),