cmd

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Types

type Schema added in v0.0.2

type Schema struct {
	SchemaVersion [3]int          `json:"schema_version"`
	Commands      []SchemaCommand `json:"commands"`
}

type SchemaCommand added in v0.0.2

type SchemaCommand struct {
	Alpha    bool                `json:"alpha"`
	Use      string              `json:"use"`
	Short    string              `json:"short"`
	Run      SchemaCommandRun    `json:"run"`
	Flags    []SchemaCommandFlag `json:"flags"`
	Commands []SchemaCommand     `json:"commands"`
}

type SchemaCommandField added in v0.0.2

type SchemaCommandField struct {
	Name    string                     `json:"name"`
	Flag    string                     `json:"flag"`
	From    string                     `json:"from"`
	Parsers []SchemaCommandFieldParser `json:"parsers"`
	Long    bool                       `json:"long"`
}

type SchemaCommandFieldParser added in v0.0.2

type SchemaCommandFieldParser struct {
	Parser        string `json:"parser"`
	SplitString   string `json:"split_string"`
	OnlyForHumans bool   `json:"only_for_humans"`
}

type SchemaCommandFlag added in v0.0.2

type SchemaCommandFlag struct {
	Name     string `json:"name"`
	Usage    string `json:"usage"`
	Required bool   `json:"required"`
}

type SchemaCommandList added in v0.0.2

type SchemaCommandList struct {
	Name   string               `json:"name"`
	Key    string               `json:"key"`
	Type   string               `json:"type"`
	Fields []SchemaCommandField `json:"fields"`
}

type SchemaCommandRun added in v0.0.2

type SchemaCommandRun struct {
	Cmd    string               `json:"cmd"`
	Path   string               `json:"path"`
	Fields []SchemaCommandField `json:"fields"`
	Lists  []SchemaCommandList  `json:"lists"`
}

Jump to

Keyboard shortcuts

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