Skip to content

Commit

Permalink
fix: remove FilterFunc service.Template == "GIT"
Browse files Browse the repository at this point in the history
  • Loading branch information
yuaanlin committed Jan 12, 2025
1 parent 9b0a75c commit 44e6127
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 17 deletions.
3 changes: 0 additions & 3 deletions internal/cmd/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,6 @@ func selectInteractively(f *cmdutil.Factory, opts *Options) (*model.Service, *mo
ProjectID: project.ID,
Auto: false,
CreateNew: true,
FilterFunc: func(service *model.Service) bool {
return service.Template == "GIT"
},
})
if err != nil {
return nil, nil, err
Expand Down
3 changes: 0 additions & 3 deletions internal/cmd/deployment/get/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ func runGetInteractive(f *cmdutil.Factory, opts *Options) error {
ServiceName: &opts.serviceName,
EnvironmentID: &opts.environmentID,
CreateNew: false,
FilterFunc: func(service *model.Service) bool {
return service.Template == "GIT"
},
})
if err != nil {
return err
Expand Down
4 changes: 0 additions & 4 deletions internal/cmd/deployment/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"github.com/zeabur/cli/internal/cmdutil"
"github.com/zeabur/cli/internal/util"
"github.com/zeabur/cli/pkg/fill"
"github.com/zeabur/cli/pkg/model"
)

type Options struct {
Expand Down Expand Up @@ -57,9 +56,6 @@ func runListInteractive(f *cmdutil.Factory, opts *Options) error {
ServiceName: &opts.serviceName,
EnvironmentID: &opts.environmentID,
CreateNew: false,
FilterFunc: func(service *model.Service) bool {
return service.Template == "GIT"
},
})
if err != nil {
return err
Expand Down
3 changes: 0 additions & 3 deletions internal/cmd/deployment/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ func runLogInteractive(f *cmdutil.Factory, opts *Options) error {
ServiceName: &opts.serviceName,
EnvironmentID: &opts.environmentID,
CreateNew: false,
FilterFunc: func(service *model.Service) bool {
return service.Template == "GIT"
},
})
if err != nil {
return err
Expand Down
4 changes: 0 additions & 4 deletions internal/cmd/service/redeploy/redeploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"github.com/zeabur/cli/internal/cmdutil"
"github.com/zeabur/cli/internal/util"
"github.com/zeabur/cli/pkg/fill"
"github.com/zeabur/cli/pkg/model"
)

type Options struct {
Expand Down Expand Up @@ -61,9 +60,6 @@ func runRedeployInteractive(f *cmdutil.Factory, opts *Options) error {
ServiceName: &opts.name,
EnvironmentID: &opts.environmentID,
CreateNew: false,
FilterFunc: func(service *model.Service) bool {
return service.Template == "GIT"
},
}); err != nil {
return err
}
Expand Down

0 comments on commit 44e6127

Please sign in to comment.