xoxys.general/plugins/filter/prefix.py
Robert Kaussow 3d375ba0b6
Some checks failed
continuous-integration/drone/pr Build is failing
refactor: rework ci and testing
2023-01-30 14:20:45 +01:00

16 lines
305 B
Python

"""Filter to prefix all itams from a list."""
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
def prefix(value, prefix="--"):
return [prefix + x for x in value]
class FilterModule(object): # noqa
def filters(self):
return {"prefix": prefix}