Версия 0.0.3

This commit is contained in:
parent 413e9c57be
commit 8c7d0609df
189 changed files with 52063 additions and 2769 deletions

View file

@ -1,10 +1,12 @@
import subprocess
from typing import Tuple
class CLIExecutor:
"""
Класс для выполнения CLI-команд
"""
@staticmethod
def run(command: list) -> Tuple[int, str]:
"""
@ -20,6 +22,6 @@ class CLIExecutor:
command,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
check=False # Не вызываем исключение при ошибке
check=False, # Не вызываем исключение при ошибке
)
return result.returncode, result.stdout.decode('utf-8')
return result.returncode, result.stdout.decode("utf-8")