Skip to content

Commit bb39f21

Browse files
chore: improve flash warning readability
1 parent d8ef7ce commit bb39f21

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/arduino-flasher-cli/flash/flash.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import (
2424

2525
"github.com/arduino/go-paths-helper"
2626
runas "github.com/arduino/go-windows-runas"
27+
"github.com/fatih/color"
2728
"github.com/spf13/cobra"
2829

2930
"github.com/arduino/arduino-flasher-cli/cmd/feedback"
@@ -98,7 +99,7 @@ func runFlashCommand(ctx context.Context, args []string, forceYes bool, preserve
9899
}
99100

100101
if !forceYes && !preserveUser {
101-
feedback.Print("\nWARNING: flashing a new Linux image on the board will erase any existing data you have on it.")
102+
feedback.Print(color.RedString("\nWARNING: flashing a new Linux image will erase any existing data that you have on the board.\n"))
102103
feedback.Printf("Do you want to proceed and flash %s on the board? (yes/no)", args[0])
103104

104105
var yesInput string

0 commit comments

Comments
 (0)