ó
žS]c           @@ s   d  Z  d d l m Z m Z d d l m Z d d l m Z d d l m	 Z	 d d l
 m Z d d l j Z d   Z d	   Z d S(
   s.   The ``clean`` command removes generated state.i    (   t   absolute_importt   print_function(   t   load_project(   t   prepare_without_interaction(   t   PROVIDE_MODE_CHECK(   t   console_utilsNc         C@ so   t  |   } | j    t | d t } Wd QXt j | |  } | rZ t | j  d St j	 |  d Sd S(   s>   Clean up generated state.

    Returns:
        exit code
    t   modeNi    i   (
   R   t   null_frontendR   R   t   project_opst   cleant   printt   status_descriptionR   t   print_status_errors(   t   project_dirt   projectt   resultt   status(    (    sB   lib/python2.7/site-packages/anaconda_project/internal/cli/clean.pyt   clean_command   s    c         C@ s   t  |  j  S(   s4   Start the clean command and return exit status code.(   R   t	   directory(   t   args(    (    sB   lib/python2.7/site-packages/anaconda_project/internal/cli/clean.pyt   main&   s    (   t   __doc__t
   __future__R    R   t*   anaconda_project.internal.cli.project_loadR   t   anaconda_project.prepareR   t   anaconda_project.provideR   t   anaconda_project.internal.cliR   t   anaconda_project.project_opsR   R   R   (    (    (    sB   lib/python2.7/site-packages/anaconda_project/internal/cli/clean.pyt   <module>   s   	