mirror of https://github.com/docker/cli.git
copynit: s/WEB BASED/WEB-BASED/
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
2f206fff3c
commit
81744d7aa8
|
@ -92,7 +92,7 @@ func (m *OAuthManager) LoginDevice(ctx context.Context, w io.Writer) (*types.Aut
|
||||||
return nil, ErrDeviceLoginStartFail
|
return nil, ErrDeviceLoginStartFail
|
||||||
}
|
}
|
||||||
|
|
||||||
_, _ = fmt.Fprintln(w, aec.Bold.Apply("\nUSING WEB BASED LOGIN"))
|
_, _ = fmt.Fprintln(w, aec.Bold.Apply("\nUSING WEB-BASED LOGIN"))
|
||||||
_, _ = fmt.Fprintln(w, "To sign in with credentials on the command line, use 'docker login -u <username>'")
|
_, _ = fmt.Fprintln(w, "To sign in with credentials on the command line, use 'docker login -u <username>'")
|
||||||
_, _ = fmt.Fprintf(w, "\nYour one-time device confirmation code is: "+aec.Bold.Apply("%s\n"), state.UserCode)
|
_, _ = fmt.Fprintf(w, "\nYour one-time device confirmation code is: "+aec.Bold.Apply("%s\n"), state.UserCode)
|
||||||
_, _ = fmt.Fprintf(w, aec.Bold.Apply("Press ENTER")+" to open your browser or submit your device code here: "+aec.Underline.Apply("%s\n"), strings.Split(state.VerificationURI, "?")[0])
|
_, _ = fmt.Fprintf(w, aec.Bold.Apply("Press ENTER")+" to open your browser or submit your device code here: "+aec.Underline.Apply("%s\n"), strings.Split(state.VerificationURI, "?")[0])
|
||||||
|
|
|
@ -180,7 +180,7 @@ code, and authenticate.
|
||||||
```console
|
```console
|
||||||
$ docker login
|
$ docker login
|
||||||
|
|
||||||
USING WEB BASED LOGIN
|
USING WEB-BASED LOGIN
|
||||||
To sign in with credentials on the command line, use 'docker login -u <username>'
|
To sign in with credentials on the command line, use 'docker login -u <username>'
|
||||||
|
|
||||||
Your one-time device confirmation code is: LNFR-PGCJ
|
Your one-time device confirmation code is: LNFR-PGCJ
|
||||||
|
|
|
@ -30,7 +30,7 @@ func TestOauthLogin(t *testing.T) {
|
||||||
assert.NilError(t, err)
|
assert.NilError(t, err)
|
||||||
|
|
||||||
output, _ := io.ReadAll(p)
|
output, _ := io.ReadAll(p)
|
||||||
assert.Check(t, strings.Contains(string(output), "USING WEB BASED LOGIN"), string(output))
|
assert.Check(t, strings.Contains(string(output), "USING WEB-BASED LOGIN"), string(output))
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestLoginWithEscapeHatch(t *testing.T) {
|
func TestLoginWithEscapeHatch(t *testing.T) {
|
||||||
|
|
Loading…
Reference in New Issue