ķ
>ō[c           @   sW   d  Z  d d l Z d d l m Z d d l m Z e j d  Z d   Z d   Z	 d S(   s/   
Search your Anaconda repository for packages.
i˙˙˙˙N(   t   get_server_api(   t   pprint_packagess   binstar.searchc         C   sq   t  |  j |  j  } | j |  j d |  j d |  j } t | d t t	 j
 d t |   t	 j
 d  d  S(   Nt   package_typet   platformt   accesss   Found %i packagess?   
Run 'anaconda show <USER/PACKAGE>' to get installation details(   R    t   tokent   sitet   searcht   nameR   R   R   t   Falset   loggert   infot   len(   t   argst   aserver_apit   packages(    (    s]   lib/python2.7/site-packages/anaconda_client-1.7.2-py2.7.egg/binstar_client/commands/search.pyR      s
    $c         C   sĒ   |  j  d d d d d d t } | j d d d d d	 | j d
 d d d d g d d | j d d d d d d d d d d d d d g
 d d | j d t  d  S(   NR   t   helps"   Search in your Anaconda repositoryt   descriptiont   epilogR   t   nargsi   s   Search strings   -ts   --package-typet   choicest   condat   pypis%   only search for packages of this types   -ps
   --platforms   osx-32s   osx-64s   win-32s   win-64s   linux-32s   linux-64s   linux-armv6ls   linux-armv7ls   linux-ppc64let   noarchs/   only search for packages of the chosen platformt   main(   t
   add_parsert   __doc__t   add_argumentt   set_defaultsR   (   t
   subparserst   parser(    (    s]   lib/python2.7/site-packages/anaconda_client-1.7.2-py2.7.egg/binstar_client/commands/search.pyR      s    		(
   R   t   loggingt   binstar_client.utilsR    t   binstar_client.utils.pprintR   t	   getLoggerR
   R   R   (    (    (    s]   lib/python2.7/site-packages/anaconda_client-1.7.2-py2.7.egg/binstar_client/commands/search.pyt   <module>   s   	
