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

12 lines
337 B
Python

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