Skip to content

Commit a2513ee

Browse files
committed
updates from comments
1 parent 79acb8e commit a2513ee

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmd/dbc/auth.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,7 @@ func (m loginModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
168168
return m, m.requestDeviceCode(msg)
169169
case *device.CodeResponse:
170170
return m, tea.Sequence(
171-
tea.Println("Copy code: ", msg.UserCode),
172-
tea.Println("To authenticate, visit: ", msg.VerificationURIComplete),
171+
tea.Println("Opening ", msg.VerificationURIComplete, " in your default web browser..."),
173172
func() tea.Msg {
174173
browser.OpenURL(msg.VerificationURIComplete)
175174
accessToken, err := device.Wait(context.TODO(), dbc.DefaultClient, m.tokenURI.String(), device.WaitOptions{
@@ -205,7 +204,7 @@ func (m loginModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
205204
return m, cmd
206205
}
207206

208-
func (m loginModel) View() string { return m.spinner.View() }
207+
func (m loginModel) View() string { return m.spinner.View() + " Waiting for confirmation..." }
209208

210209
type LogoutCmd struct {
211210
RegistryURL string `arg:"positional" help:"URL of the driver registry to log out from"`

0 commit comments

Comments
 (0)