
The highest tagged major version is
v2.
package
Version:
v0.0.3
Opens a new window with list of versions in this module.
Published: Nov 7, 2023
License: BSD-2-Clause
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Argument struct {
Name string `yaml:"name"`
Description string `yaml:"description"`
Type Type `yaml:"type"`
Variadic bool `yaml:"variadic"`
}
type Command struct {
Description string `yaml:"description"`
Options map[string]*Option `yaml:"options"`
Arguments []*Argument `yaml:"arguments"`
Subcommands map[string]*Command `yaml:"subcommands"`
}
type Option struct {
Short string `yaml:"short"`
Description string `yaml:"description"`
Type Type `yaml:"type"`
Default string `yaml:"default"`
}
type Program struct {
Name string `yaml:"name"`
Version string `yaml:"version"`
Description string `yaml:"description"`
Options map[string]*Option `yaml:"options"`
Arguments []*Argument `yaml:"arguments"`
Subcommands map[string]*Command `yaml:"subcommands"`
}
type Schema struct {
Program Program
}
const (
TypeUnspecified Type = ""
TypeString Type = "string"
TypeInteger Type = "integer"
TypeFloat Type = "float"
TypeBoolean Type = "boolean"
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.