Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct input colors #131

Merged
merged 1 commit into from
Nov 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/commands/repo/rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func runRm(ctx context.Context, streams command.Streams, hubClient *hub.Client,
}
fmt.Fprintln(streams.Out(), ansi.Warn(fmt.Sprintf("WARNING: You are about to permanently delete repository %q including %d tag(s)", namedRef.Name(), count)))
fmt.Fprintln(streams.Out(), ansi.Warn(" This action is irreversible"))
fmt.Fprintln(streams.Out(), ansi.Warn("Enter the name of the repository to confirm deletion:"), namedRef.Name())
fmt.Fprintln(streams.Out(), ansi.Info("Enter the name of the repository to confirm deletion:"), namedRef.Name())
userIn := make(chan string, 1)
go func() {
reader := bufio.NewReader(streams.In())
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/tag/rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func runRm(ctx context.Context, streams command.Streams, hubClient *hub.Client,
if !opts.force {
fmt.Fprintln(streams.Out(), ansi.Warn(fmt.Sprintf(`WARNING: You are about to permanently delete image "%s:%s"`, reference.FamiliarName(ref), ref.Tag())))
fmt.Fprintln(streams.Out(), ansi.Warn(" This action is irreversible"))
fmt.Fprintf(streams.Out(), "Are you sure you want to delete the image tagged %q from repository %q? [y/N]", ref.Tag(), reference.FamiliarName(ref))
fmt.Fprintf(streams.Out(), ansi.Info("Are you sure you want to delete the image tagged %q from repository %q? [y/N] "), ref.Tag(), reference.FamiliarName(ref))
userIn := make(chan string, 1)
go func() {
reader := bufio.NewReader(streams.In())
Expand Down
2 changes: 1 addition & 1 deletion internal/login/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func readPassword(streams command.Streams) (string, error) {
if err != nil {
return "", err
}
fmt.Fprintf(streams.Out(), "Password: ")
fmt.Fprint(streams.Out(), ansi.Info("Password: "))
if err := term.DisableEcho(in.FD(), oldState); err != nil {
return "", err
}
Expand Down