From a4d0ccc34e7096fc79aee8c26bf481671fbffb15 Mon Sep 17 00:00:00 2001 From: arkohut <39525455+arkohut@users.noreply.github.com> Date: Fri, 7 Jun 2024 19:55:45 +0800 Subject: [PATCH] feat(library): show plugins --- memos/commands.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/memos/commands.py b/memos/commands.py index 1064be6..2e252e5 100644 --- a/memos/commands.py +++ b/memos/commands.py @@ -40,10 +40,14 @@ def display_libraries(libraries): "\n".join( f"{folder['id']}: {folder['path']}" for folder in library["folders"] ), + "\n".join( + f"{plugin['id']}: {plugin['name']} {plugin['webhook_url']}" + for plugin in library["plugins"] + ), ] ) - print(tabulate(table, headers=["ID", "Name", "Folders"], tablefmt="plain")) + print(tabulate(table, headers=["ID", "Name", "Folders", "Plugins"], tablefmt="plain")) @app.command()