@click.command('install')
@click.option('-v', 'verbosity', flag_value='DEBUG', help='Use Verbose Mode')
@click.option('-n', 'verbosity', flag_value='INFO', default=True, help='Use Normal Verbosity (default)')
@click.option('-q', 'verbosity', flag_value='WARNING', help='Use Quiet Mode')
def cmd(verbosity):

    logger = output.get_root_logger('manager-install')
    logger.setLevel(verbosity)

    logger.info('Installing Git Hooks')
    try:
        repository = git.Repo()
    except git.InvalidGitRepositoryError:
        logger.error('This command must be executed inside a repository.')
        raise click.Abort

    hook_dir = pathlib.Path(repository.git_dir) / 'hooks'
    pre_commit_path = hook_dir / 'pre-commit'
    commit_msg_path = hook_dir / 'commit-msg'
    install_hook('Pre-Commit', pre_commit_path, 'zalando-turnstile-pre-commit')
    install_hook('Commit-Msg', commit_msg_path, 'zalando-turnstile-commit-msg $1')
Adds a menu item to the menu bar being constructed.
dataset/ETHPy150Open zalando/turnstile/turnstile/manager_subcommands/install.py/cmd--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/dock/dock_window.py/DockWindow.add_to_menu