mirror of
https://github.com/imarkoff/Marble-shell-theme.git
synced 2025-09-18 01:07:55 -07:00
- Fully covered gresource orchestrator and it helpers with tests - Use abstract command runner INSTEAD OF SUBPROCESS in gresources - Replaced some subprocesses by builtin functions
14 lines
417 B
Python
14 lines
417 B
Python
import subprocess
|
|
from abc import ABC, abstractmethod
|
|
|
|
|
|
class CommandRunner(ABC):
|
|
@abstractmethod
|
|
def run(self, command: list[str], **kwargs) -> subprocess.CompletedProcess:
|
|
"""
|
|
Run a command in the shell and return the output.
|
|
:param command: Command to run.
|
|
:param kwargs: Additional arguments for the command.
|
|
:return: Output of the command.
|
|
"""
|
|
pass |