ArchiveBox/archivebox/pkgs/abx-plugin-git/abx_plugin_git/extractors.py
2024-11-16 06:44:12 -08:00

20 lines
420 B
Python

__package__ = 'abx_plugin_git'
from pathlib import Path
from abx_pkg import BinName
from abx_spec_extractor import BaseExtractor, ExtractorName
from .binaries import GIT_BINARY
class GitExtractor(BaseExtractor):
name: ExtractorName = 'git'
binary: BinName = GIT_BINARY.name
def get_output_path(self, snapshot) -> Path | None:
return snapshot.as_link() / 'git'
GIT_EXTRACTOR = GitExtractor()