diff options
Diffstat (limited to 'internal/configuration/types.go')
| -rw-r--r-- | internal/configuration/types.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/configuration/types.go b/internal/configuration/types.go index fe5787be5..90dbaa63c 100644 --- a/internal/configuration/types.go +++ b/internal/configuration/types.go @@ -40,3 +40,9 @@ type CommandLineSource struct { flags *pflag.FlagSet callback func(flag *pflag.Flag) (string, interface{}) } + +// MapSource loads configuration from the command line flags. +type MapSource struct { + m map[string]interface{} + koanf *koanf.Koanf +} |
