mirror of https://github.com/knative/client.git
This version contains the following: 1. wraps the main root Kn command to support plugin 2. plugins are any executable in kn's config new pluginDir variable which defaults to $PATH 3. plugins must have name kn-* 4. 'kn plugin list' sub-command to list found kn plugins 5. skips any kn plugins found with name that match core commands, e.g., kn-service would be ignored 6. can execute any valid kn plugins found, e.g., `kn valid` where the plugin file `kn-valid` is in path specified in 2. 7. unit tests (using gotest.tools) And is missing: 1. integration tests 2. plugin install command 3. plugin repository command 4. plugin / Knative server version negotiation 5. anything else we agree on in plugin req doc I plan to create issues for the things missing so we don't end up with an even bigger PR. It's already big as is but is a good MVP as per plugins requirement doc. |
||
|---|---|---|
| .. | ||
| plugin | ||
| revision | ||
| route | ||
| service | ||
| completion.go | ||
| completion_test.go | ||
| human_readable_flags.go | ||
| namespaced.go | ||
| namespaced_test.go | ||
| testing_helper.go | ||
| testing_helper_test.go | ||
| types.go | ||
| types_test.go | ||
| version.go | ||
| version_test.go | ||
| wait_flags.go | ||
| wait_flags_test.go | ||