2025-01-15 10:42:10 +01:00
|
|
|
import abc
|
|
|
|
|
|
|
|
class VCSBase(metaclass=abc.ABCMeta):
|
|
|
|
"""Base class for VCS implementations"""
|
|
|
|
|
|
|
|
@property
|
|
|
|
@abc.abstractmethod
|
|
|
|
def name(self) -> str:
|
|
|
|
"""Get the name of VCS"""
|
|
|
|
pass
|
2025-01-15 10:45:06 +01:00
|
|
|
|
|
|
|
@abc.abstractmethod
|
|
|
|
def get_path(self, *_args):
|
|
|
|
"""Issue a get to a specific path from the repository."""
|
|
|
|
pass
|