~michel-slm/myrepos-utils

24485f0b579404f7792b49d03161e9fb7825ded2 — Michel Lind 4 months ago 7804cb4
cli: add version command

Signed-off-by: Michel Lind <salimma@fedoraproject.org>
1 files changed, 6 insertions(+), 1 deletions(-)

M myrepos_utils/cli.py
M myrepos_utils/cli.py => myrepos_utils/cli.py +6 -1
@@ 14,7 14,7 @@ import click
import json
import os
import sys
from . import utils
from . import utils, __version__


@click.group()


@@ 62,3 62,8 @@ def sort():
    sorted_config = utils.sort()
    with open(os.path.expanduser("~/.mrconfig"), "w") as f:
        sorted_config.write(f)


@cli.command(help="show version information")
def version():
    click.echo(__version__)