From 69870147f53d684908a481bbe9e698ec3806ee96 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Thu, 8 Aug 2024 00:56:30 +0200 Subject: [PATCH] Add a few more status prints to the commands --- src/cli/database_command.rs | 4 ++++ src/cli/user_command.rs | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/cli/database_command.rs b/src/cli/database_command.rs index 84d6273..3e5e9bb 100644 --- a/src/cli/database_command.rs +++ b/src/cli/database_command.rs @@ -178,6 +178,8 @@ async fn create_databases( eprintln!("Failed to create database '{}': {}", name, e); eprintln!("Skipping..."); result = CommandStatus::PartiallySuccessfullyModified; + } else { + println!("Database '{}' created.", name); } } @@ -200,6 +202,8 @@ async fn drop_databases( eprintln!("Failed to drop database '{}': {}", name, e); eprintln!("Skipping..."); result = CommandStatus::PartiallySuccessfullyModified; + } else { + println!("Database '{}' dropped.", name); } } diff --git a/src/cli/user_command.rs b/src/cli/user_command.rs index 512b9fe..fd79acc 100644 --- a/src/cli/user_command.rs +++ b/src/cli/user_command.rs @@ -176,6 +176,8 @@ async fn drop_users( eprintln!("{}", e); eprintln!("Skipping..."); result = CommandStatus::PartiallySuccessfullyModified; + } else { + println!("User '{}' dropped.", username); } } @@ -336,4 +338,4 @@ async fn unlock_users( } Ok(result) -} \ No newline at end of file +}