Internal
internal/adapters/cli/help
Package help formats command help for the CLI adapter.
import "github.com/nilstate/scafld/v2/internal/adapters/cli/help"
Package help formats command help for the CLI adapter.
Functions
func Print(w io.Writer, commands []Command)
Source: internal/adapters/cli/help/help.go:18
Print writes root command help.
func PrintCommand(w io.Writer, name string, commands []Command)
Source: internal/adapters/cli/help/help.go:27
PrintCommand writes command-specific help.
Types
type Command
Source: internal/adapters/cli/help/help.go:12
Command is one command row in the root help output.
type Command struct {
Name string
Summary string
}Fields
Name stringSummary string
