pkg/invoke: refactor plugin exec and backfill unit tests
This commit is contained in:
@ -61,7 +61,9 @@ func PluginSupports(supportedVersions ...string) PluginInfo {
|
||||
}
|
||||
}
|
||||
|
||||
func Decode(jsonBytes []byte) (PluginInfo, error) {
|
||||
type Decoder struct{}
|
||||
|
||||
func (_ *Decoder) Decode(jsonBytes []byte) (PluginInfo, error) {
|
||||
var info simple
|
||||
err := json.Unmarshal(jsonBytes, &info)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user