restart: Avoid bad empty line (#3729)

Print '...' instead, for a distributed cluster, other characters will
follow to indicate the status of the restart command.

Co-authored-by: Anis Elleuch <anis@min.io>
This commit is contained in:
Anis Elleuch
2021-05-27 19:46:30 -07:00
committed by GitHub
co-authored by Anis Elleuch
parent 8d65ee7130
commit 9740a09584
+5 -2
View File
@@ -59,7 +59,7 @@ type serviceRestartCommand struct {
// String colorized service restart command message.
func (s serviceRestartCommand) String() string {
return console.Colorize("ServiceRestart", "Restart command successfully sent to `"+s.ServerURL+"`. Type Ctrl-C or wait to see the status of the restart.")
return console.Colorize("ServiceRestart", "Restart command successfully sent to `"+s.ServerURL+"`. Type Ctrl-C to quit or wait to follow the status of the restart process.")
}
// JSON jsonified service restart command message.
@@ -125,7 +125,7 @@ func mainAdminServiceRestart(ctx *cli.Context) error {
printMsg(serviceRestartCommand{Status: "success", ServerURL: aliasedURL})
coloring := color.New(color.FgRed)
mark := "."
mark := "..."
// Print restart progress
printProgress := func() {
@@ -134,6 +134,9 @@ func mainAdminServiceRestart(ctx *cli.Context) error {
}
}
printProgress()
mark = "."
for {
select {
case <-globalContext.Done():