Skip to content

Commit

Permalink
added postgres connection string
Browse files Browse the repository at this point in the history
Signed-off-by: Yaten Dhingra <yaten598@gmail.com>
  • Loading branch information
yaten2302 committed Jan 3, 2025
1 parent 73a60fd commit 139e739
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/branches/get/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func Run(ctx context.Context, branchId string, env string, fsys afero.Fs) error
Password: *resp.JSON200.DbPass,
}

postgresConnectionString := utils.ToPostgresURL(config)
table := `|HOST|PORT|USER|PASSWORD|JWT SECRET|POSTGRES VERSION|STATUS|POSTGRES URL|
|-|-|-|-|-|-|-|-|
` + fmt.Sprintf(
Expand All @@ -49,7 +50,7 @@ func Run(ctx context.Context, branchId string, env string, fsys afero.Fs) error
*resp.JSON200.JwtSecret,
resp.JSON200.PostgresVersion,
resp.JSON200.Status,
"",
postgresConnectionString,
)

return list.RenderTable(table)
Expand Down

0 comments on commit 139e739

Please sign in to comment.