mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-06-01 23:38:29 -04:00
20 lines
420 B
Python
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()
|