mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user