stash/pkg/plugin/convert.go
WithoutPants 0c2a2190e5
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
2024-02-22 11:20:21 +11:00

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
}