|
|
|
@ -1,9 +1,22 @@
|
|
|
|
import itertools
|
|
|
|
import itertools
|
|
|
|
import subprocess
|
|
|
|
import subprocess
|
|
|
|
from typing import Iterable, List, Literal, TypeVar, Union
|
|
|
|
from typing import (
|
|
|
|
|
|
|
|
IO,
|
|
|
|
|
|
|
|
Iterable,
|
|
|
|
def call(args, check=True, stdin=None) -> subprocess.CompletedProcess:
|
|
|
|
List,
|
|
|
|
|
|
|
|
Literal,
|
|
|
|
|
|
|
|
Optional,
|
|
|
|
|
|
|
|
Sequence,
|
|
|
|
|
|
|
|
TypeVar,
|
|
|
|
|
|
|
|
Union,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def call(
|
|
|
|
|
|
|
|
args: Sequence[str],
|
|
|
|
|
|
|
|
check: bool = True,
|
|
|
|
|
|
|
|
stdin: Optional[IO] = None,
|
|
|
|
|
|
|
|
) -> subprocess.CompletedProcess:
|
|
|
|
proc = subprocess.run(
|
|
|
|
proc = subprocess.run(
|
|
|
|
args,
|
|
|
|
args,
|
|
|
|
capture_output=True,
|
|
|
|
capture_output=True,
|
|
|
|
|