File: //home/arjun/projects/env/lib/python3.10/site-packages/boto/services/__pycache__/bs.cpython-310.pyc
o
we� � @ s� d dl mZ d dlmZ d dlmZ d dlmZ d dlZd dl Z d dl
Z
d dlmZ G dd� de
�Zed kr?e� Ze�� dS dS )
� )�OptionParser)�
ServiceDef)� Submitter)�ResultProcessorN)�StringIOc @ sj e Zd ZdZddddddd�Zd d
� Zdd� Zd
d� Zdd� Zdd� Z dd� Z
dd� Zdd� Zdd� Z
dS )�BSz*usage: %prog [options] config_file commandz#Clear input queue and output bucketz!Submit local files to the servicezStart the servicez6Report on the status of the service buckets and queuesz$Retrieve output generated by a batchz0List all batches stored in current output_domain)�reset�submit�start�status�retrieve�batchesc C s d | _ t| jd�| _| jjddddd� | jjddd d
dd� | jjd
dd d
dd� | jjddd d
ddd� | jjddd d
ddd� | jjdddddd� | jjdd� | jjdd d d
d!d"d� | jjd#d$� | jjd%d&d'd
d(d)d� | jjd*d+d d
d,d-d� d S ).N)�usagez--help-commands�
store_true�
help_commandsz'provides help on the available commands)�action�dest�helpz-az--access-key�store�stringzyour AWS Access Key)r �typer z-sz--secret-keyzyour AWS Secret Access Keyz-pz--path�pathz3the path to local directory for submit and retrieve)r r r r z-kz --keypair�keypairz.the SSH keypair used with launched instance(s)z-lz--leave�leavez>leave the files (don't retrieve) files during retrieve commandF)r z-nz--num-instances�
num_instancesz"the number of launched instance(s)� )r z-iz
--ignore-dirs�append�ignorez4directories that should be ignored by submit commandz-bz
--batch-id�batchz1batch identifier required by the retrieve command)�service_namer �Usage�parser�
add_option�set_defaults)�self� r% �I/home/arjun/projects/env/lib/python3.10/site-packages/boto/services/bs.py�__init__) s>