* WIP on auto-generating CLi * WIP * WIP * WIP * add pagination.go * handle more flag types * WIP on refactoring * WIP * working tests * add docs * echo all flags * add repeated tests * remove comment * fix compositeListValue issue Co-authored-by: Anil Kumar Kammari <anil@vitwit.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
20 lines
397 B
Go
20 lines
397 B
Go
package flag
|
|
|
|
import (
|
|
"google.golang.org/protobuf/reflect/protoreflect"
|
|
)
|
|
|
|
// SimpleValue wraps a simple (non-list and non-map) protobuf value.
|
|
type SimpleValue interface {
|
|
|
|
// Get returns the value.
|
|
Get() protoreflect.Value
|
|
}
|
|
|
|
// ListValue wraps a protobuf list/repeating value.
|
|
type ListValue interface {
|
|
|
|
// AppendTo appends the values to the provided list.
|
|
AppendTo(protoreflect.List)
|
|
}
|