This commit is contained in:
Marc Beninca 2024-09-17 22:14:01 +02:00
parent 2e00140e82
commit 3940d32195
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 16 additions and 4 deletions

View file

@ -16,8 +16,14 @@ class PM(Class, ABC):
@abstractmethod @abstractmethod
def get_clean_command(self) -> Command: def get_clean_command(self) -> Command:
"""Command to clean packages cache.""" """Command to clean packages cache.
:rtype: Command
"""
@abstractmethod @abstractmethod
def get_install_command(self) -> Command: def get_install_command(self) -> Command:
"""Command to install package(s).""" """Command to install package(s).
:rtype: Command
"""

View file

@ -8,9 +8,15 @@ class APT(PM):
"""Advanced Package Tool.""" """Advanced Package Tool."""
def get_clean_command(self) -> Command: def get_clean_command(self) -> Command:
"""Return clean command.""" """Return clean command.
:rtype: Command
"""
return Command() return Command()
def get_install_command(self) -> Command: def get_install_command(self) -> Command:
"""Return install command.""" """Return install command.
:rtype: Command
"""
return Command() return Command()