mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Plugin hooks (#1452)
* Refactor session and plugin code * Add context to job tasks * Show hooks in plugins page * Refactor session management
This commit is contained in:
@@ -78,22 +78,6 @@ For embedded plugins, the `exec` field is a list with the first element being th
|
||||
For embedded plugins, the `interface` field must be set to one of the following values:
|
||||
* `js`
|
||||
|
||||
# Task configuration
|
||||
|
||||
Tasks are configured using the following structure:
|
||||
|
||||
```
|
||||
tasks:
|
||||
- name: <operation name>
|
||||
description: <optional description>
|
||||
defaultArgs:
|
||||
argKey: argValue
|
||||
```
|
||||
|
||||
A plugin configuration may contain multiple tasks.
|
||||
|
||||
The `defaultArgs` field is used to add inputs to the plugin input sent to the plugin.
|
||||
|
||||
# Javascript API
|
||||
|
||||
## Logging
|
||||
|
||||
Reference in New Issue
Block a user