1d00dfef7b
This includes branching arguments as well as commands, eg.
app user create <id> <first> <last>
app user <id> delete
app user <id> rename <to>
Of note, required/optional flags and positional arguments are not
currently enforced.
17 lines
513 B
Go
17 lines
513 B
Go
// Code generated by "stringer -type=TokenType"; DO NOT EDIT.
|
|
|
|
package kong
|
|
|
|
import "strconv"
|
|
|
|
const _TokenType_name = "UntypedTokenEOLTokenFlagTokenFlagValueTokenShortFlagTokenShortFlagTailTokenPositionalArgumentToken"
|
|
|
|
var _TokenType_index = [...]uint8{0, 12, 20, 29, 43, 57, 75, 98}
|
|
|
|
func (i TokenType) String() string {
|
|
if i < 0 || i >= TokenType(len(_TokenType_index)-1) {
|
|
return "TokenType(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _TokenType_name[_TokenType_index[i]:_TokenType_index[i+1]]
|
|
}
|