box-o-sand/argh/node.go

45 lines
524 B
Go
Raw Normal View History

2022-05-15 18:22:56 +00:00
package argh
type Node interface{}
type TypedNode struct {
Type string
Node Node
2022-05-15 18:22:56 +00:00
}
type PassthroughArgs struct {
Nodes []Node
}
2022-05-15 18:22:56 +00:00
type CompoundShortFlag struct {
Nodes []Node
2022-05-15 18:22:56 +00:00
}
type Ident struct {
Literal string
2022-05-15 18:22:56 +00:00
}
type BadArg struct {
Literal string
From Pos
To Pos
}
2022-05-15 18:22:56 +00:00
type Command struct {
Name string
Values map[string]string
Nodes []Node
2022-05-15 18:22:56 +00:00
}
type Flag struct {
Name string
Values map[string]string
Nodes []Node
2022-05-15 18:22:56 +00:00
}
type StdinFlag struct{}
type StopFlag struct{}
type ArgDelimiter struct{}