docs

package
v2.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2025 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(schema schema.Schema, format DocFormat, out io.Writer) error

Types

type CommandData

type CommandData struct {
	schema.Command
	Program string
	Path    []string
}

func (CommandData) DocText

func (d CommandData) DocText() string

func (CommandData) DocTextHTML

func (d CommandData) DocTextHTML() string

func (CommandData) DocTextMarkdown

func (d CommandData) DocTextMarkdown() string

type Data

type Data struct {
	Program     ProgramData
	CommandList []CommandData
}

func ConstructData

func ConstructData(s schema.Schema) Data

type DocFormat

type DocFormat string
const (
	DocFormatHTML     DocFormat = "html"
	DocFormatMarkdown DocFormat = "markdown"
	DocFormatText     DocFormat = "text"
)

type ProgramData

type ProgramData struct {
	Name    string
	Version string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL