mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-05 15:27:53 +10:00
new vastly simplified plugin spec without pydantic
This commit is contained in:
17
archivebox/plugins_extractor/git/extractors.py
Normal file
17
archivebox/plugins_extractor/git/extractors.py
Normal file
@@ -0,0 +1,17 @@
|
||||
__package__ = 'plugins_extractor.git'
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from abx.archivebox.base_extractor import BaseExtractor, ExtractorName
|
||||
|
||||
from .binaries import GIT_BINARY
|
||||
|
||||
|
||||
class GitExtractor(BaseExtractor):
|
||||
name: ExtractorName = 'git'
|
||||
binary: str = GIT_BINARY.name
|
||||
|
||||
def get_output_path(self, snapshot) -> Path | None:
|
||||
return snapshot.as_link() / 'git'
|
||||
|
||||
GIT_EXTRACTOR = GitExtractor()
|
||||
Reference in New Issue
Block a user