You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
argh/node.go

44 lines
694 B

package argh
type Node interface{}
type TypedNode struct {
Type string `json:"type"`
Node Node `json:"node"`
}
type PassthroughArgs struct {
Nodes []Node `json:"nodes"`
}
type CompoundShortFlag struct {
Nodes []Node `json:"nodes"`
}
type Ident struct {
Literal string `json:"literal"`
}
type BadArg struct {
Literal string
From Pos
To Pos
}
type Command struct {
Name string `json:"name"`
Values map[string]string `json:"values"`
Nodes []Node `json:"nodes"`
}
type Flag struct {
Name string `json:"name"`
Values map[string]string `json:"values"`
}
type StdinFlag struct{}
type StopFlag struct{}
type ArgDelimiter struct{}