mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54: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:
@@ -89,20 +89,14 @@ The `errLog` field tells stash what the default log level should be when the plu
|
||||
|
||||
# Task configuration
|
||||
|
||||
Tasks are configured using the following structure:
|
||||
In addition to the standard task configuration, external tags may be configured with an optional `execArgs` field to add extra parameters to the execution arguments for the task.
|
||||
|
||||
For example:
|
||||
|
||||
```
|
||||
tasks:
|
||||
- name: <operation name>
|
||||
description: <optional description>
|
||||
defaultArgs:
|
||||
argKey: argValue
|
||||
execArgs:
|
||||
- <arg to add to the exec line>
|
||||
```
|
||||
|
||||
A plugin configuration may contain multiple tasks.
|
||||
|
||||
The `defaultArgs` field is used to add inputs to the plugin input sent to the plugin.
|
||||
|
||||
The `execArgs` field allows adding extra parameters to the execution arguments for this task.
|
||||
|
||||
Reference in New Issue
Block a user