File tree Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -120,10 +120,10 @@ func New(options ...Option) (*CLI, error) {
120
120
func newCLI (options ... Option ) (* CLI , error ) {
121
121
// Default CLI options.
122
122
c := & CLI {
123
- commandName : "kubebuilder" ,
124
- plugins : make (map [string ]plugin.Plugin ),
125
- defaultPlugins : make (map [config.Version ][]string ),
126
- fs : machinery.Filesystem {FS : afero .NewOsFs ()},
123
+ commandName : "kubebuilder" ,
124
+ plugins : make (map [string ]plugin.Plugin ),
125
+ defaultPlugins : make (map [config.Version ][]string ),
126
+ fs : machinery.Filesystem {FS : afero .NewOsFs ()},
127
127
}
128
128
129
129
// Apply provided options.
Original file line number Diff line number Diff line change @@ -104,14 +104,3 @@ func (c CLI) getAvailableProjectVersions() (projectVersions []string) {
104
104
sort .Strings (projectVersions )
105
105
return projectVersions
106
106
}
107
-
108
- func (c CLI ) getAvailablePlugins () (pluginKeys []string ) {
109
- for key , p := range c .plugins {
110
- // Only return non-deprecated plugins.
111
- if _ , isDeprecated := p .(plugin.Deprecated ); ! isDeprecated {
112
- pluginKeys = append (pluginKeys , strconv .Quote (key ))
113
- }
114
- }
115
- sort .Strings (pluginKeys )
116
- return pluginKeys
117
- }
You can’t perform that action at this time.
0 commit comments