ejplatform/ej-conversations

View on GitHub
src/ej_conversations/management/commands/createfakeconversations.py

Summary

Maintainability
A
0 mins
Test Coverage
from django.core.management.base import BaseCommand

from ej_conversations.examples import make_examples


class Command(BaseCommand):
    help = 'Create synthetic conversation examples'

    def add_arguments(self, parser):
        parser.add_argument(
            '--silent',
            action='store_true',
            help='Prevents showing debug info',
        )

    def handle(self, *args, silent=False, **options):
        make_examples(verbose=not silent)