mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +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:
@@ -41,7 +41,7 @@ func (t *rawPluginTask) 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")
|
||||
}
|
||||
|
||||
var cmd *exec.Cmd
|
||||
|
||||
Reference in New Issue
Block a user