- Sample docs loader

- Fix CLI scripts
This commit is contained in:
Cyber MacGeddon 2025-05-06 13:39:25 +01:00
parent 9e4eb634a4
commit e1d9003cba
34 changed files with 818 additions and 56 deletions

View file

@ -1,6 +1,7 @@
#!/usr/bin/env python3
"""
Shows all loaded library documents
"""
import argparse
@ -29,14 +30,14 @@ def show_docs(url, user):
table.append(("time", doc.time))
table.append(("title", doc.title))
table.append(("kind", doc.kind))
table.append(("comments", doc.comments))
table.append(("note", doc.comments))
table.append(("tags", ", ".join(doc.tags)))
print(tabulate.tabulate(
table,
tablefmt="pretty",
stralign="left",
maxcolwidths=[None, 55],
maxcolwidths=[None, 67],
))
print()