ArchiveBox/archivebox/pkgs/abx-plugin-default-binprovi.../abx_plugin_default_binprovi...

27 lines
483 B
Python

import abx
from typing import Dict
from abx_pkg import (
AptProvider,
BrewProvider,
EnvProvider,
BinProvider,
)
apt = APT_BINPROVIDER = AptProvider()
brew = BREW_BINPROVIDER = BrewProvider()
env = ENV_BINPROVIDER = EnvProvider()
apt.setup()
brew.setup()
env.setup()
@abx.hookimpl(tryfirst=True)
def get_BINPROVIDERS() -> Dict[str, BinProvider]:
return {
'apt': APT_BINPROVIDER,
'brew': BREW_BINPROVIDER,
'env': ENV_BINPROVIDER,
}