mirror of
https://github.com/fluxcd/flux2.git
synced 2026-05-01 15:48: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
|
|
@ -52,12 +52,9 @@ func (p *SourceBucketProvider) Set(str string) error {
|
|||
}
|
||||
|
||||
func (p *SourceBucketProvider) Type() string {
|
||||
return "sourceBucketProvider"
|
||||
return strings.Join(supportedSourceBucketProviders, "|")
|
||||
}
|
||||
|
||||
func (p *SourceBucketProvider) Description() string {
|
||||
return fmt.Sprintf(
|
||||
"the S3 compatible storage provider name, available options are: (%s)",
|
||||
strings.Join(supportedSourceBucketProviders, ", "),
|
||||
)
|
||||
return "the S3 compatible storage provider name"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue