cmd

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: MIT Imports: 25 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"`
	SchemaGeneratedAt time.Time       `json:"schema_generated_at"`
}

type SchemaCommand added in v0.0.2

type SchemaCommand struct {
	Alpha         bool                `json:"alpha"`
	Use           string              `json:"use"`
	Aliases       []string            `json:"aliases"`
	Short         string              `json:"short"`
	Run           SchemaCommandRun    `json:"run"`
	Flags         []SchemaCommandFlag `json:"flags"`
	Commands      []SchemaCommand     `json:"commands"`
	Wait          bool                `json:"wait"`
	DefaultFormat string              `json:"default-format"`
	CacheFile     string              `json:"cache-file"`
	DontSortFlags bool                `json:"dont-sort-flags"`
	Interactive   bool                `json:"interactive"`
}

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"`
	Array          bool                       `json:"array"`
	Bool           bool                       `json:"bool"`
	Number         bool                       `json:"number"`
	Wait           string                     `json:"wait"`
	WaitPrintField string                     `json:"waitPrintField"`
	WaitError      string                     `json:"waitError"`
	Hide           bool                       `json:"hide"`
}

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"`
	Array                  bool                          `json:"array"`
	Default                string                        `json:"default"`
	Bool                   bool                          `json:"bool"`
	Processing             []SchemaCommandFlagProcessing `json:"processing"`
	ValidateRegex          string                        `json:"validate-regex"`
	LongName               string                        `json:"long-name"`
	SelectfromServeroption string                        `json:"selectfrom-serveroption"`
	ValidatePassword       bool                          `json:"validate-password"`
	ValidateBoolean        bool                          `json:"validate-boolean"`
	ValidateIntegerMin     int                           `json:"validate-integer-min"`
	ValidateIntegerMax     int                           `json:"validate-integer-max"`
	ValidateValues         []string                      `json:"validate-values"`
}

type SchemaCommandFlagProcessing added in v0.1.1

type SchemaCommandFlagProcessing struct {
	Method string      `json:"method"`
	Args   interface{} `json:"args"`
}

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"`
	Method                  string               `json:"method"`
	Fields                  []SchemaCommandField `json:"fields"`
	Lists                   []SchemaCommandList  `json:"lists"`
	ServerMethod            string               `json:"serverMethod"`
	ParseStatisticsResponse bool                 `json:"ParseStatisticsResponse"`
}

type ServerIdsDryrunResponse added in v0.1.1

type ServerIdsDryrunResponse struct {
	Dryrun      bool     `json:"dryrun"`
	ServerNames []string `json:"server-names"`
}

type ServersSshInfo added in v0.1.3

type ServersSshInfo struct {
	ExternalIp string `json:"externalIp"`
}

Jump to

Keyboard shortcuts

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