Skip to content

Commit

Permalink
remove cloud options
Browse files Browse the repository at this point in the history
  • Loading branch information
simar7 committed Jun 22, 2024
1 parent f9ea02b commit fbe10cb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 67 deletions.
55 changes: 0 additions & 55 deletions pkg/flag/cloud_flags.go

This file was deleted.

12 changes: 0 additions & 12 deletions pkg/flag/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ type Flags struct {
GlobalFlagGroup *GlobalFlagGroup
AWSFlagGroup *AWSFlagGroup
CacheFlagGroup *CacheFlagGroup
CloudFlagGroup *CloudFlagGroup
DBFlagGroup *DBFlagGroup
ImageFlagGroup *ImageFlagGroup
K8sFlagGroup *K8sFlagGroup
Expand All @@ -324,7 +323,6 @@ type Options struct {
GlobalOptions
AWSOptions
CacheOptions
CloudOptions
DBOptions
ImageOptions
K8sOptions
Expand Down Expand Up @@ -527,9 +525,6 @@ func (f *Flags) groups() []FlagGroup {
if f.RegoFlagGroup != nil {
groups = append(groups, f.RegoFlagGroup)
}
if f.CloudFlagGroup != nil {
groups = append(groups, f.CloudFlagGroup)
}
if f.AWSFlagGroup != nil {
groups = append(groups, f.AWSFlagGroup)
}
Expand Down Expand Up @@ -619,13 +614,6 @@ func (f *Flags) ToOptions(args []string) (Options, error) {
}
}

if f.CloudFlagGroup != nil {
opts.CloudOptions, err = f.CloudFlagGroup.ToOptions()
if err != nil {
return Options{}, xerrors.Errorf("cloud flag error: %w", err)
}
}

if f.CacheFlagGroup != nil {
opts.CacheOptions, err = f.CacheFlagGroup.ToOptions()
if err != nil {
Expand Down

0 comments on commit fbe10cb

Please sign in to comment.