Files
rengine/web/scanEngine/management/commands/dumpcustomengines.py
T

9 lines
320 B
Python

from django.core.management.base import BaseCommand
from reNgine.common_func import dump_custom_scan_engines
class Command(BaseCommand):
help = 'Dumps custom engines into YAMLs in custom_engines/ folder'
def handle(self, *args, **kwargs):
return dump_custom_scan_engines('/usr/src/app/custom_engines')