mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-23 22:53:00 +02:00
fix pkg management subcommand
This commit is contained in:
@@ -8,8 +8,6 @@ from pydantic_pkgr.binprovider import bin_abspath
|
|||||||
|
|
||||||
from ....config import NODE_BIN_PATH, bin_path
|
from ....config import NODE_BIN_PATH, bin_path
|
||||||
|
|
||||||
from plugantic.plugins import LOADED_PLUGINS
|
|
||||||
|
|
||||||
from pkg.settings import env
|
from pkg.settings import env
|
||||||
|
|
||||||
|
|
||||||
@@ -30,11 +28,11 @@ class Command(BaseCommand):
|
|||||||
|
|
||||||
def list(self, *args, **options):
|
def list(self, *args, **options):
|
||||||
self.stdout.write('################# PLUGINS ####################')
|
self.stdout.write('################# PLUGINS ####################')
|
||||||
for plugin in LOADED_PLUGINS:
|
for plugin in settings.PLUGINS.values():
|
||||||
self.stdout.write(f'{plugin.name}:')
|
self.stdout.write(f'{plugin.name}:')
|
||||||
for binary in plugin.binaries:
|
for binary in plugin.binaries:
|
||||||
try:
|
try:
|
||||||
binary = binary.install()
|
binary = binary.load()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# import ipdb; ipdb.set_trace()
|
# import ipdb; ipdb.set_trace()
|
||||||
raise
|
raise
|
||||||
|
Reference in New Issue
Block a user