xoxys.general/plugins/filter/prefix.py
Robert Kaussow b84f50ed71
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
fix filter plugin folder
2020-08-18 17:53:09 +02:00

12 lines
207 B
Python

"""Filter to prefix all itams from a list."""
def prefix(value, prefix="--"):
return [prefix + x for x in value]
class FilterModule(object):
def filters(self):
return {"prefix": prefix}