From add419264ed176a2b4029cb366d98d9ac0021063 Mon Sep 17 00:00:00 2001 From: Lenka Segura Date: Dec 28 2018 14:23:37 +0000 Subject: cranc get prs instead of pr list --- diff --git a/cranc/cranc.py b/cranc/cranc.py index 02e51e2..1f50b4d 100644 --- a/cranc/cranc.py +++ b/cranc/cranc.py @@ -7,7 +7,6 @@ import pprint from libpagure import libpagure -<<<<<<< HEAD api_token = os.getenv("CRANC_TOKEN") project = "pagure" @@ -27,11 +26,11 @@ def cranc(): @click.group() -def pr(): +def get(): pass -@click.command(name="list") +@click.command(name="prs") @click.option("--status") @click.option("--assignee") @click.option("--author") @@ -57,10 +56,10 @@ def filter_pull_requests(status, assignee, author): _log.exception("Failed to connect to the server") -pr.add_command(pr_list) +get.add_command(pr_list) ################################################################################ # General section ################################################################################ -cranc.add_command(pr) +cranc.add_command(get)