3
_Af                 @   sX   d dl mZ d dlZd dlmZmZ d dlZd dlmZ e sBe	Z
G dd deeZdS )    )print_functionN)CommandGitcClientCommand)
is_python3c               @   s0   e Zd ZdZdZdZdZdZdd Zdd	 Z	d
S )
GitcDeleteTFzDelete a GITC Client.z
%prog
zq
This subcommand deletes the current GITC client, deleting the GITC manifest
and all locally downloaded sources.
c             C   s   |j dddddd d S )Nz-fz--forceforce
store_truezForce the deletion (no prompt).)destactionhelp)
add_option)selfp r   E/home/qytech/356xLinux510-101server/.repo/repo/subcmds/gitc_delete.py_Options(   s    zGitcDelete._Optionsc             C   sJ   |j s8d| jj }t|j }|dks8td tjd tj	| jj
 d S )Nz8This will delete GITC client: %s
Are you sure? (yes/no) yesz"Response was not "yes"
 Exiting...   )r   gitc_manifestgitc_client_nameinputlowerprintsysexitplatform_utilsrmtreegitc_client_dir)r   optargspromptresponser   r   r   Execute-   s    

zGitcDelete.ExecuteN)
__name__
__module____qualname__commonZvisible_everywherehelpSummary	helpUsagehelpDescriptionr   r"   r   r   r   r   r      s   r   )
__future__r   r   commandr   r   r   	pyversionr   	raw_inputr   r   r   r   r   r   <module>   s   