1
0
mirror of https://github.com/docker/cli.git synced 2026-10-23 19:12:36 +03:00
Files
cli/cli-plugins/hooks/printer.go
Sebastiaan van Stijn 4a1b2ef2c5 cli-plugins/hooks: update godoc
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-03-19 12:24:35 +01:00

21 lines
411 B
Go

package hooks
import (
"fmt"
"io"
"github.com/morikuni/aec"
)
// PrintNextSteps renders list of [NextSteps] messages and writes them
// to out. It is a no-op if messages is empty.
func PrintNextSteps(out io.Writer, messages []string) {
if len(messages) == 0 {
return
}
_, _ = fmt.Fprintln(out, aec.Bold.Apply("\nWhat's next:"))
for _, n := range messages {
_, _ = fmt.Fprintln(out, " ", n)
}
}