File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ func PromptProjectRef(fsys afero.Fs) error {
145
145
} else if err := utils .AssertIsLinkedFS (fsys ); err == nil {
146
146
return nil
147
147
} else if strings .HasPrefix (err .Error (), "Cannot find project ref. Have you run" ) {
148
- fmt .Printf ( `You can find your project ref from the project's dashboard home page, e.g. %s/project/<project-ref>.
148
+ fmt .Fprintf ( os . Stderr , `You can find your project ref from the project's dashboard home page, e.g. %s/project/<project-ref>.
149
149
Enter your project ref: ` , utils .GetSupabaseDashboardURL ())
150
150
151
151
scanner := bufio .NewScanner (os .Stdin )
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ func updatePostgresConfig(conn *pgx.Conn) {
151
151
}
152
152
153
153
func PromptPassword (stdin * os.File ) string {
154
- fmt .Print ( "Enter your database password: " )
154
+ fmt .Fprint ( os . Stderr , "Enter your database password: " )
155
155
bytepw , err := term .ReadPassword (int (stdin .Fd ()))
156
156
fmt .Println ()
157
157
if err != nil {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import (
15
15
)
16
16
17
17
func Run (stdin io.Reader , fsys afero.Fs ) error {
18
- fmt .Printf ( `You can generate an access token from %s/account/tokens
18
+ fmt .Fprintf ( os . Stderr , `You can generate an access token from %s/account/tokens
19
19
Enter your access token: ` , utils .GetSupabaseDashboardURL ())
20
20
21
21
scanner := bufio .NewScanner (stdin )
You can’t perform that action at this time.
0 commit comments