Refine print out of recs
This commit is contained in:
@@ -23,9 +23,9 @@ def print_recommendation(path: str | None, text: str, ctx: InferenceContext):
|
||||
print(f"Path: {path}")
|
||||
|
||||
print(f"Text: {text or '<None>'}")
|
||||
for r in recommendations:
|
||||
for i, r in enumerate(recommendations):
|
||||
cat, subcat, _ = ctx.lookup_category(r)
|
||||
print(f"- {r}: {cat}-{subcat}")
|
||||
print(f"- {i}: {r} ({cat}-{subcat})")
|
||||
|
||||
|
||||
@click.group(epilog="For more information see "
|
||||
|
Reference in New Issue
Block a user