Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: Fix verdi plugin list #6108

Merged
merged 2 commits into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions aiida/cmdline/commands/cmd_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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
Expand Down
6 changes: 4 additions & 2 deletions aiida/plugins/entry_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,22 @@ class EntryPointFormat(enum.Enum):

ENTRY_POINT_GROUP_TO_MODULE_PATH_MAP = {
'aiida.calculations': 'aiida.orm.nodes.process.calculation.calcjob',
'aiida.calculations.importers': 'aiida.calculations.importers',
'aiida.calculations.monitors': 'aiida.calculations.monitors',
'aiida.cmdline.computer.configure': 'aiida.cmdline.computer.configure',
'aiida.cmdline.data': 'aiida.cmdline.data',
'aiida.cmdline.data.structure.import': 'aiida.cmdline.data.structure.import',
'aiida.cmdline.computer.configure': 'aiida.cmdline.computer.configure',
'aiida.data': 'aiida.orm.nodes.data',
'aiida.groups': 'aiida.orm.groups',
'aiida.node': 'aiida.orm.nodes',
'aiida.parsers': 'aiida.parsers.plugins',
'aiida.schedulers': 'aiida.schedulers.plugins',
'aiida.storage': 'aiida.storage',
'aiida.transports': 'aiida.transports.plugins',
'aiida.tools.calculations': 'aiida.tools.calculations',
'aiida.tools.data.orbitals': 'aiida.tools.data.orbitals',
'aiida.tools.dbexporters': 'aiida.tools.dbexporters',
'aiida.tools.dbimporters': 'aiida.tools.dbimporters.plugins',
'aiida.transports': 'aiida.transports.plugins',
'aiida.workflows': 'aiida.workflows',
}

Expand Down
Loading