mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 16:34:02 +01:00
* Accept plain map for runPluginTask * Support running plugin task without task name * Add interface to run plugin operations * Update RunPluginTask client mutation
14 lines
240 B
Go
14 lines
240 B
Go
package plugin
|
|
|
|
import (
|
|
"github.com/stashapp/stash/pkg/plugin/common"
|
|
)
|
|
|
|
func toPluginArgs(args OperationInput) common.ArgsMap {
|
|
ret := make(common.ArgsMap)
|
|
for k, a := range args {
|
|
ret[k] = common.PluginArgValue(a)
|
|
}
|
|
|
|
return ret
|
|
}
|