File: printer.go

package info (click to toggle)
docker.io 28.5.2%2Bdfsg3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 68,176 kB
  • sloc: sh: 5,867; makefile: 863; ansic: 184; python: 162; asm: 159
file content (18 lines) | stat: -rw-r--r-- 293 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package hooks

import (
	"fmt"
	"io"

	"github.com/morikuni/aec"
)

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)
	}
}