We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9b9c2f commit f4c5020Copy full SHA for f4c5020
cli/server.go
@@ -659,13 +659,13 @@ func Server(newAPI func(*coderd.Options) *coderd.API) *cobra.Command {
659
root.AddCommand(&cobra.Command{
660
Use: "postgres-builtin-url",
661
Short: "Output the connection URL for the built-in PostgreSQL deployment.",
662
- RunE: func(cmd *cobra.Command, args []string) error {
+ RunE: func(cmd *cobra.Command, _ []string) error {
663
cfg := createConfig(cmd)
664
url, err := embeddedPostgresURL(cfg)
665
if err != nil {
666
return err
667
}
668
- cmd.Println(cliui.Styles.Code.Render("psql \"" + url + "\""))
+ _, _ = fmt.Fprintf(cmd.OutOrStdout(), "psql %q\n", url)
669
return nil
670
},
671
})
0 commit comments