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:
committed by
Matheus Pimenta
parent
b33f173670
commit
28f5b553a2
@@ -52,12 +52,9 @@ func (p *SourceOCIProvider) Set(str string) error {
|
||||
}
|
||||
|
||||
func (p *SourceOCIProvider) Type() string {
|
||||
return "sourceOCIProvider"
|
||||
return strings.Join(supportedSourceOCIProviders, "|")
|
||||
}
|
||||
|
||||
func (p *SourceOCIProvider) Description() string {
|
||||
return fmt.Sprintf(
|
||||
"the OCI provider name, available options are: (%s)",
|
||||
strings.Join(supportedSourceOCIProviders, ", "),
|
||||
)
|
||||
return "the OCI provider name"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user