stash/pkg/plugin/examples/python/pyraw.yml
WithoutPants 4f9af6ba27
Example python plugin (#825)
* Add example python plugin
* Fix log incorrectly detecting as progress level
2020-10-12 08:20:20 +11:00

29 lines
870 B
YAML

# example plugin config
name: Hawwwwt Tagger (Raw Python edition)
description: Python Hawwwwt tagging utility (using raw interface).
version: 1.0
url: http://www.github.com/stashapp/stash
exec:
- python
- "{pluginDir}/pyplugin.py"
interface: raw
tasks:
- name: Add hawwwwt tag to random scene
description: Creates a "Hawwwwt" tag if not present and adds to a random scene.
defaultArgs:
mode: add
- name: Remove hawwwwt tag from system
description: Removes the "Hawwwwt" tag from all scenes and deletes the tag.
defaultArgs:
mode: remove
- name: Indefinite task
description: Sleeps indefinitely - interruptable
# we'll try command-line argument for this one
execArgs:
- indef
- "{pluginDir}"
- name: Long task
description: Sleeps for 100 seconds - interruptable
defaultArgs:
mode: long