data

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgumentData

type ArgumentData struct {
	Name        string
	Description []string
	Type        schema.Type
	Variadic    bool
}

type CommandData

type CommandData struct {
	Path        name.Path
	Syntax      string
	Description []string
	Options     []OptionData
	Arguments   []ArgumentData
	Subcommands []SubcommandData
}

type Data

type Data struct {
	Program  string
	Version  string
	Commands []CommandData
}

func Construct

func Construct(s *schema.Schema) Data

type OptionData

type OptionData struct {
	Names       []string
	Description []string
	Type        schema.Type
	Default     string
}

type SubcommandData

type SubcommandData struct {
	Name        string
	Description []string
}

Jump to

Keyboard shortcuts

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