From 34e564ad081143a4739c58a7aaa499e55d4e4651 Mon Sep 17 00:00:00 2001 From: Sebastiaan Huber Date: Sun, 3 Sep 2023 15:57:38 +0200 Subject: [PATCH] CLI: Remove loading backend for `verdi plugin list` This command doesn't need the storage backend and loading it adds significant unnecessary run time. --- aiida/cmdline/commands/cmd_plugin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aiida/cmdline/commands/cmd_plugin.py b/aiida/cmdline/commands/cmd_plugin.py index 9f9a44d1e7..2bc4b457fc 100644 --- a/aiida/cmdline/commands/cmd_plugin.py +++ b/aiida/cmdline/commands/cmd_plugin.py @@ -13,7 +13,7 @@ import click from aiida.cmdline.commands.cmd_verdi import verdi -from aiida.cmdline.utils import decorators, echo +from aiida.cmdline.utils import echo from aiida.plugins.entry_point import ENTRY_POINT_GROUP_TO_MODULE_PATH_MAP @@ -25,7 +25,6 @@ def verdi_plugin(): @verdi_plugin.command('list') @click.argument('entry_point_group', type=click.Choice(list(ENTRY_POINT_GROUP_TO_MODULE_PATH_MAP)), required=False) @click.argument('entry_point', type=click.STRING, required=False) -@decorators.with_dbenv() def plugin_list(entry_point_group, entry_point): """Display a list of all available plugins.""" from aiida.cmdline.utils.common import print_process_info