@plugins_cmd.command('add', short_help='Adds a new plugin to the project.')
@click.argument('name')
@pass_context
def plugins_add_cmd(ctx, name):
    """This command can add a new plugion to the project.  If just given
    the name of the plugin the latest version of that plugin is added to
    the project.

    The argument is either the name of the plugin or the name of the plugin
    suffixed with `@version` with the version.  For instance to install
    the version 0.1 of the plugin demo you would do `demo@0.1`.
    """
    project = ctx.get_project()
    from .packages import add_package_to_project

    try:
        info = add_package_to_project(project, name)
    except __HOLE__ as e:
        click.echo('Error: %s' % e, err=True)
    else:
        click.echo('Package %s (%s) was added to the project' % (
            info['name'],
            info['version'],
        ))
dataset/ETHPy150Open lektor/lektor-archive/lektor/cli.py/plugins_add_cmd