U
    /e                     @   s   d dl Z d dlZd dlmZ d dlmZ ddgddZejedeed	d
 Z	e	
 dd Ze	 dd Ze
 dd Zdd Zdd ZdS )    N)__version__)entry_pointsz-hz--helpX   )Zhelp_option_namesZmax_content_width)Zcontext_settingsc                   C   s   dS )zDask command line interface.N r   r   r   ,/tmp/pip-unpacked-wheel-dbjnr7gq/dask/cli.pycli   s    r   c                  C   s   ddl } | d dS )zBOpen Dask documentation (https://docs.dask.org/) in a web browser.r   Nzhttps://docs.dask.org)
webbrowseropen)r   r   r   r   docs   s    r
   c                   C   s   dS )z)Information about your dask installation.Nr   r   r   r   r   info   s    r   c                  C   s   ddl m}  |   dS )z(Print versions of Dask related projects.r   show_versionsN)Z
dask.utilsr   r   r   r   r   versions#   s    r   c                 C   sb   |  }t|tjtjfs4tdt| d dS |j| j	krTtd|j d | 
| dS )a  Add `entry_point` command to `interface`.

    Parameters
    ----------
    interface : click.Command or click.Group
        The click interface to augment with `entry_point`.
    entry_point : importlib.metadata.EntryPoint
        The entry point which loads to a ``click.Command`` or
        ``click.Group`` instance to be added as a sub-command or
        sub-group in `interface`.

    zRentry points in 'dask_cli' must be instances of click.Command or click.Group, not .Nz)While registering the command with name 'zC', an existing command or group; the original has been overwritten.)load
isinstanceclickCommandGroupwarningswarntypenamecommandsZadd_command)Z	interfaceZentry_pointcommandr   r   r   _register_command_ep+   s    r   c                  C   s$   t ddD ]} tt|  q
t  dS )z$Run the dask command line interface.Zdask_cli)groupN)r   r   r   )epr   r   r   run_cliI   s    r   )r   r   Zdaskr   Zdask.compatibilityr   ZCONTEXT_SETTINGSr   Zversion_optionr   r   r
   r   r   r   r   r   r   r   r   <module>   s"   



