-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace references to knative.dev/client to knative.dev/client-pkg (#384
- Loading branch information
Showing
16 changed files
with
61 additions
and
1,130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
kn-quickstart* | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
third_party/VENDOR-LICENSE/github.com/mitchellh/go-homedir/LICENSE
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package plugin | ||
|
||
// Allow plugins to register to this slice for inlining | ||
var InternalPlugins PluginList | ||
|
||
// Interface describing a plugin | ||
type Plugin interface { | ||
// Get the name of the plugin (the file name without extensions) | ||
Name() string | ||
|
||
// Execute the plugin with the given arguments | ||
Execute(args []string) error | ||
|
||
// Return a description of the plugin (if support by the plugin binary) | ||
Description() (string, error) | ||
|
||
// The command path leading to this plugin. | ||
// Eg. for a plugin "kn source github" this will be [ "source", "github" ] | ||
CommandParts() []string | ||
|
||
// Location of the plugin where it is stored in the filesystem | ||
Path() string | ||
} | ||
|
||
// Used for sorting a list of plugins | ||
type PluginList []Plugin | ||
|
||
func (p PluginList) Len() int { return len(p) } | ||
func (p PluginList) Less(i, j int) bool { return p[i].Name() < p[j].Name() } | ||
func (p PluginList) Swap(i, j int) { p[i], p[j] = p[j], p[i] } |
Oops, something went wrong.