pull/8136/merge
orent 2023-07-04 21:29:31 +02:00 committed by GitHub
commit 6c8cddb6df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -636,10 +636,11 @@ func runUp(ctx context.Context, cmd string, args []string, upArgs upArgsT) (retE
fmt.Fprintf(Stderr, "\nTo authenticate, visit:\n\n\t%s\n\n", *url)
if upArgs.qr {
q, err := qrcode.New(*url, qrcode.Medium)
q.DisableBorder = true
if err != nil {
log.Printf("QR code error: %v", err)
} else {
fmt.Fprintf(Stderr, "%s\n", q.ToString(false))
fmt.Fprintf(Stderr, "%s\n", q.ToSmallString(true))
}
}
}