Skip to content

Commit 2c930e1

Browse files
author
Jeny Sadadia
committed
Remove issues command group
Remove `issues` command group and subcommand handlers as part of command restructuring. Signed-off-by: Jeny Sadadia <[email protected]>
1 parent 0dd3e47 commit 2c930e1

File tree

3 files changed

+1
-173
lines changed

3 files changed

+1
-173
lines changed

kcidev/subcommands/results/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
)
2222
from kcidev.libs.git_repo import get_tree_name, set_giturl_branch_commit
2323
from kcidev.subcommands.results.hardware import hardware
24-
from kcidev.subcommands.results.issues import issues
2524
from kcidev.subcommands.results.options import (
2625
builds_and_tests_options,
2726
common_options,
@@ -74,7 +73,7 @@
7473
# Display KCIDB issues
7574
kci-dev results issues list
7675
""",
77-
commands={"hardware": hardware, "issues": issues},
76+
commands={"hardware": hardware},
7877
invoke_without_command=True,
7978
)
8079
@click.pass_context
@@ -678,7 +677,5 @@ def detect(
678677
print_stats(stats, headers, max_col_width, table_fmt)
679678

680679

681-
issues.add_command(detect)
682-
683680
if __name__ == "__main__":
684681
main_kcidev()

kcidev/subcommands/results/issues.py

Lines changed: 0 additions & 153 deletions
This file was deleted.

kcidev/subcommands/results/parser.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -937,19 +937,3 @@ def format_item_json(regression):
937937

938938
if total_regressions == 0:
939939
kci_msg("✅ No regressions found - all status changes are expected")
940-
941-
942-
def cmd_issue_list(data, use_json):
943-
"""Display KCIDB issues"""
944-
if use_json:
945-
kci_msg_json(data["issues"])
946-
else:
947-
kci_msg(data["issues"])
948-
949-
950-
def print_data(data, use_json):
951-
"""Print a list of dictionary"""
952-
if use_json:
953-
kci_msg_json(data)
954-
else:
955-
kci_msg(data)

0 commit comments

Comments
 (0)