<filename>mys/cli/subparsers/clean.py<gh_stars>0
import shutil

from ..utils import Spinner
from ..utils import read_package_configuration


def do_clean(_parser, _args, _mys_config):
    read_package_configuration()

    with Spinner(text='Cleaning'):
        shutil.rmtree('build', ignore_errors=True)


def add_subparser(subparsers):
    subparser = subparsers.add_parser(
        'clean',
        description='Remove build output.')
    subparser.set_defaults(func=do_clean)

<filename>mys/cli/subparsers/clean.py<gh_stars>0
import shutil

from ..utils import Spinner
from ..utils import read_package_configuration


def do_clean(_parser, _args, _mys_config):
    read_package_configuration()

    with Spinner(text='Cleaning'):
        shutil.rmtree('build', ignore_errors=True)


def add_subparser(subparsers):
    subparser = subparsers.add_parser(
        'clean',
        description='Remove build output.')
    subparser.set_defaults(func=do_clean)
