Skip to content

Commit

Permalink
Merge pull request #408 from IBM-Cloud/fix/readd-plugin-fakes
Browse files Browse the repository at this point in the history
chore: readded plugin fakes
  • Loading branch information
steveclay authored Jul 3, 2024
2 parents f7abdc9 + 5c7cdfa commit 9b519ef
Show file tree
Hide file tree
Showing 4 changed files with 1,598 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ type Flag struct {
}

// Plugin is an interface for Bluemix CLI plugins.
//
//go:generate counterfeiter . Plugin
type Plugin interface {
// GetMetadata returns the metadata of the plugin.
GetMetadata() PluginMetadata
Expand Down
2 changes: 2 additions & 0 deletions plugin/plugin_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ func (e PluginConfigInvalidTypeError) Error() string {

// PluginConfig defines methods to access plug-in's private configuration stored
// in a JSON format.
//
//go:generate counterfeiter . PluginConfig
type PluginConfig interface {
// Get returns the value for a given key.
// The value can be float64, bool, string, []interface{},
Expand Down
148 changes: 148 additions & 0 deletions plugin/pluginfakes/fake_plugin.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9b519ef

Please sign in to comment.