You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Next, a plugin could optionally implement further interfaces to declare its support for specific Kubebuilder subcommands. For example:
@@ -144,6 +182,8 @@ func main() {
144
182
145
183
### Cobra Commands
146
184
185
+
**RESOLUTION:** `cobra` will be used directly in Phase 1 since it is a widely used, feature-rich CLI package. This, however unlikely, may change in future phases.
186
+
147
187
As discussed earlier as part of [#1148](https://github.com/kubernetes-sigs/kubebuilder/pull/1148), one goal is to eliminate the use of `cobra.Command` in the exported API of Kubebuilder since that is considered an internal implementation detail.
148
188
149
189
However, at some point, projects that make use of this extensibility will likely want to integrate their own subcommands. In this proposal, `cli.WithExtraCommands()` _DOES_ expose `cobra.Command` to allow callers to pass their own subcommands to the CLI.
@@ -161,6 +201,6 @@ Are there other ideas for how to handle the following requirements?
161
201
* Support cohesive help output
162
202
163
203
### Other
164
-
1. Should the `InitPlugin` interface methods be required of all plugins?
165
-
2. Any other approaches or ideas?
166
-
3. Anything I didn't cover that could use more explanation?
204
+
1. ~Should the `InitPlugin` interface methods be required of all plugins?~ No
205
+
2. ~Any other approaches or ideas?~
206
+
3. ~Anything I didn't cover that could use more explanation?~
0 commit comments