Skip to content

Commit

Permalink
feat: update cmd docs as standalone postgres is stable now (#674) (#675)
Browse files Browse the repository at this point in the history
(cherry picked from commit 668d3b1)

Co-authored-by: Tanmoy Sarkar <[email protected]>
  • Loading branch information
mergify[bot] and tanmoysrt authored May 30, 2024
1 parent 1d50b78 commit f91631b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions swiftwave_service/cmd/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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() {
Expand All @@ -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")
Expand Down

0 comments on commit f91631b

Please sign in to comment.