From f91631b97631a6099ee52c0ee3a3b098f9612b61 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 30 May 2024 19:55:57 +0530 Subject: [PATCH] feat: update cmd docs as standalone postgres is stable now (#674) (#675) (cherry picked from commit 668d3b179a32996f15ab65d1736cb7d1154d3883) Co-authored-by: Tanmoy Sarkar <57363826+tanmoysrt@users.noreply.github.com> --- swiftwave_service/cmd/postgres.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/swiftwave_service/cmd/postgres.go b/swiftwave_service/cmd/postgres.go index e0c719408d..ea85701b29 100644 --- a/swiftwave_service/cmd/postgres.go +++ b/swiftwave_service/cmd/postgres.go @@ -47,18 +47,18 @@ func init() { var postgresCmd = &cobra.Command{ Use: "postgres", - Short: "Manage local postgres database (Only for standalone installation) [Not recommended]", - Long: "Manage local postgres database (Only for standalone installation) [Not recommended]", + Short: "Manage local postgres database", + Long: "Manage local postgres database", } var postgresStartCmd = &cobra.Command{ Use: "start", Short: "Start local postgres database", - Long: "Start local postgres database (Recommended only for standalone installations)", + Long: "Start local postgres database", Run: func(cmd *cobra.Command, args []string) { if !config.LocalConfig.PostgresqlConfig.RunLocalPostgres { printInfo("It seems that you have configured a remote postgres database.") - printInfo("If you don' want to start local postgres server, type CTRL+C to exit.") + printInfo("If you don't want to start local postgres server, type CTRL+C to exit.") printInfo("Starting local postgres in 10 seconds...") // Wait for 10 seconds <-time.After(10 * time.Second) @@ -116,7 +116,7 @@ var postgresStartCmd = &cobra.Command{ var postgresStopCmd = &cobra.Command{ Use: "stop", Short: "Stop local postgres database", - Long: "Stop local postgres database (Recommended only for standalone installations)", + Long: "Stop local postgres database", Run: func(cmd *cobra.Command, args []string) { // Check if postgres container is already running if checkIfPostgresContainerIsRunning() { @@ -139,7 +139,7 @@ var postgresStopCmd = &cobra.Command{ var postgresStatusCmd = &cobra.Command{ Use: "status", Short: "Check status of local postgres database", - Long: "Check status of local postgres database (Recommended only for standalone installations)", + Long: "Check status of local postgres database", Run: func(cmd *cobra.Command, args []string) { if checkIfPostgresContainerIsRunning() { printSuccess("Local postgres database is running")