# Path: alertaclient/version.py



import click
from requests import __version__ as requests_version
from alertaclient.version import __version__ as client_version



@click.command('version', short_help='Display version info')
@click.pass_obj
@click.pass_context
def cli(ctx, obj):
    """Show Alerta server and client versions."""
    client = obj['client']
    click.echo('alerta {}'.format(client.mgmt_status()['version']))

# Path: alertaclient/version.py



# Path: alertaclient/commands/cmd_version.py
import click
from requests import __version__ as requests_version
from alertaclient.version import __version__ as client_version




@click.command('version', short_help='Display version info')
@click.pass_obj
@click.pass_context
def cli(ctx, obj):
    """Show Alerta server and client versions."""
    client = obj['client']
    click.echo('alerta {}'.format(client.mgmt_status()['version']))

    click.echo(f'alerta client {client_version}')