Sample docs loader (#365)

This commit is contained in:
cybermaggedon 2025-05-06 13:43:17 +01:00 committed by GitHub
parent 9e4eb634a4
commit 54e475fa3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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()