Show full detail for one or more issues.
(args, data)
| 484 | |
| 485 | |
| 486 | def cmd_show(args, data): |
| 487 | """Show full detail for one or more issues.""" |
| 488 | issues = all_issues(data) |
| 489 | issue_map = {i["number"]: i for i in issues} |
| 490 | |
| 491 | numbers = args.numbers |
| 492 | for idx, number in enumerate(numbers): |
| 493 | target = issue_map.get(number) |
| 494 | if not target: |
| 495 | print(f"Issue #{number} not found.", file=sys.stderr) |
| 496 | continue |
| 497 | if idx > 0: |
| 498 | print("\n" + "=" * 72 + "\n") |
| 499 | print(format_detail(target, brief=args.brief)) |
| 500 | |
| 501 | |
| 502 | def cmd_top(args, data): |
nothing calls this directly
no test coverage detected