mirror of
https://github.com/fluxcd/flux2.git
synced 2026-04-26 05:18:51 +00:00
fix: return supported values for flags when calling Values.Type()
Signed-off-by: Jesper Axelsen <jesperbaxelsen@gmail.com> Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
This commit is contained in:
parent
b33f173670
commit
28f5b553a2
9 changed files with 25 additions and 22 deletions
|
|
@ -46,9 +46,9 @@ func (l *LogLevel) Set(str string) error {
|
|||
}
|
||||
|
||||
func (l *LogLevel) Type() string {
|
||||
return "logLevel"
|
||||
return strings.Join(supportedLogLevels, "|")
|
||||
}
|
||||
|
||||
func (l *LogLevel) Description() string {
|
||||
return fmt.Sprintf("log level, available options are: (%s)", strings.Join(supportedLogLevels, ", "))
|
||||
return "log level"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue