-
Notifications
You must be signed in to change notification settings - Fork 3
/
fangs.go
23 lines (17 loc) · 896 Bytes
/
fangs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package clio
import "github.com/anchore/fangs"
// FieldDescriber a struct implementing this interface will have DescribeFields called when the config is summarized
type FieldDescriber interface {
DescribeFields(descriptions FieldDescriptionSet)
}
// FieldDescriptionSet FieldDescriber.DescribeFields will be called with this interface to add field descriptions
type FieldDescriptionSet = fangs.FieldDescriptionSet
// FlagAdder interface can be implemented by structs in order to add flags when AddFlags is called
type FlagAdder interface {
AddFlags(flags FlagSet)
}
// FlagSet is a facade of pflag.FlagSet, restricting the types of calls to what fangs needs
type FlagSet = fangs.FlagSet
// PostLoader is the interface used to do any sort of processing after the entire struct has been populated
// from the configuration files and environment variables
type PostLoader = fangs.PostLoader