chore: gofumpt (#11839)
* fumpt using main not master... * be more descriptive * fumpt * fix nits Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
co-authored by
Julien Robert
parent
bc2d553f77
commit
55054282d2
@@ -10,7 +10,6 @@ import (
|
||||
|
||||
// Builder manages options for building CLI commands.
|
||||
type Builder struct {
|
||||
|
||||
// flag.Builder embeds the flag builder and its options.
|
||||
flag.Builder
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@ type FieldValueBinder interface {
|
||||
|
||||
// Options specifies options for specific flags.
|
||||
type Options struct {
|
||||
|
||||
// Prefix is a prefix to prepend to all flags.
|
||||
Prefix string
|
||||
}
|
||||
|
||||
@@ -8,7 +8,6 @@ import (
|
||||
|
||||
// Type specifies a custom flag type.
|
||||
type Type interface {
|
||||
|
||||
// NewValue returns a new pflag.Value which must also implement either
|
||||
// SimpleValue or ListValue.
|
||||
NewValue(context.Context, *Builder) pflag.Value
|
||||
|
||||
@@ -6,14 +6,12 @@ import (
|
||||
|
||||
// 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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user