# Path: django_sonic_screwdriver/utils/shell.py
# ANSCI_ESCAPE = re.compile(r"\x1b[^m]*m")
# STDERR_WRITER = getwriter("utf-8")(stderr.buffer)
# STDOUT_WRITER = getwriter("utf-8")(stdout.buffer)
#     __HEADER = "\033[95m"
#     __OK_BLUE = "\033[94m"
#     __OK_GREEN = "\033[92m"
#     __WARNING = "\033[93m"
#     __FAIL = "\033[91m"
#     __ENDC = "\033[0m"
#     __BOLD = "\033[1m"
#     __UNDERLINE = "\033[4m"
# def ansi_clean(string):
# def write_to_stream(stream, msg):
#     def msg(self, msg, append_new_line=True):
#     def success(self, msg, append_new_line=True):
#     def warn(self, msg, append_new_line=True):
#     def fail(self, msg, append_new_line=True):
#     def debug(self, msg, append_new_line=True):
#     def __text(self, msg, color):
#     def __out(self, msg, color=None, append_new_line=False):
# class Shell:


import os
import shutil
from django.core.management.base import BaseCommand
from subprocess import call
from django_sonic_screwdriver.utils.shell import shell




class Command(BaseCommand):

    help = "Export your project."

    def add_arguments(self, parser):

        parser.add_argument(
            "--no-wheel",
            action="store_true",
            dest="nowheel",
            default=False,
            help="Do not export project with wheel.",
        )

        parser.add_argument(
            "--upload",
            "-u",

# Path: django_sonic_screwdriver/utils/shell.py
# ANSCI_ESCAPE = re.compile(r"\x1b[^m]*m")
# STDERR_WRITER = getwriter("utf-8")(stderr.buffer)
# STDOUT_WRITER = getwriter("utf-8")(stdout.buffer)
#     __HEADER = "\033[95m"
#     __OK_BLUE = "\033[94m"
#     __OK_GREEN = "\033[92m"
#     __WARNING = "\033[93m"
#     __FAIL = "\033[91m"
#     __ENDC = "\033[0m"
#     __BOLD = "\033[1m"
#     __UNDERLINE = "\033[4m"
# def ansi_clean(string):
# def write_to_stream(stream, msg):
#     def msg(self, msg, append_new_line=True):
#     def success(self, msg, append_new_line=True):
#     def warn(self, msg, append_new_line=True):
#     def fail(self, msg, append_new_line=True):
#     def debug(self, msg, append_new_line=True):
#     def __text(self, msg, color):
#     def __out(self, msg, color=None, append_new_line=False):
# class Shell:


# Path: django_sonic_screwdriver/management/commands/pypi:export.py
import os
import shutil
from django.core.management.base import BaseCommand
from subprocess import call
from django_sonic_screwdriver.utils.shell import shell





class Command(BaseCommand):

    help = "Export your project."

    def add_arguments(self, parser):

        parser.add_argument(
            "--no-wheel",
            action="store_true",
            dest="nowheel",
            default=False,
            help="Do not export project with wheel.",
        )

        parser.add_argument(
            "--upload",
            "-u",

            action="store_true",