github.com/khulnasoft/cli@v0.0.0-20240402070845-01bcad7beefa/cli-plugins/hooks/printer.go (about)

     1  package hooks
     2  
     3  import (
     4  	"fmt"
     5  	"io"
     6  
     7  	"github.com/morikuni/aec"
     8  )
     9  
    10  func PrintNextSteps(out io.Writer, messages []string) {
    11  	if len(messages) == 0 {
    12  		return
    13  	}
    14  	fmt.Fprintln(out, aec.Bold.Apply("\nWhat's next:"))
    15  	for _, n := range messages {
    16  		_, _ = fmt.Fprintf(out, "    %s\n", n)
    17  	}
    18  }