Plugin API improvements (#4603)

* Accept plain map for runPluginTask
* Support running plugin task without task name
* Add interface to run plugin operations
* Update RunPluginTask client mutation
This commit is contained in:
WithoutPants
2024-02-22 11:20:21 +11:00
committed by GitHub
parent a8c909e0c9
commit 0c2a2190e5
13 changed files with 229 additions and 105 deletions

View File

@@ -53,7 +53,7 @@ func (t *rpcPluginTask) Start() error {
command := t.plugin.getExecCommand(t.operation)
if len(command) == 0 {
return fmt.Errorf("empty exec value in operation %s", t.operation.Name)
return fmt.Errorf("empty exec value")
}
pluginErrReader, pluginErrWriter := io.Pipe()