-
Notifications
You must be signed in to change notification settings - Fork 36
/
docker-copyedit.pyi
63 lines (55 loc) · 2.17 KB
/
docker-copyedit.pyi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
from typing import Any, Optional, Dict, List, Tuple, Iterator, Sequence
from typing import NewType
__copyright__: str
logg: logging.Logger
MAX_PATH: int
MAX_NAME: int
MAX_PART: int
MAX_VERSION: int
TMPDIR: str
DOCKER: str
KEEPDIR: int
KEEPDATADIR: bool
KEEPSAVEFILE: bool
KEEPINPUTFILE: bool
KEEPOUTPUTFILE: bool
OK: bool
NULL: str
StringConfigs: Dict[str, str]
StringMeta: Dict[str, str]
StringCmd: Dict[str, str]
class ShellException(Exception):
def __init__(self, msg: str, result: ShellResult) -> None:
self.result = result
def sh(cmd: str = ..., shell: bool = ..., check: bool = ..., ok: Optional[bool] = ..., default: str = ...) -> ShellResult:
result: ShellResult
def portprot(arg: str) -> Tuple[str, str]: ...
def clean_whitespaces(text: str) -> str: ...
def chmod_file_stat(filename: str) -> None: ...
def need_to_remove_old_manifest() -> bool: ...
def need_to_clean_whitespaces() -> bool: ...
def need_to_chmod_file_stat() -> bool: ...
class ImageName:
registry: Optional[str] = ...
image: str = ...
version: Optional[str] = ...
def __init__(self, image: str) -> None: ...
def __str__(self) -> str: ...
def parse(self, image: str) -> None: ...
def tag(self) -> str: ...
def local(self) -> bool: ...
def valid(self) -> bool: ...
def problems(self) -> Iterator[str]: ...
Commands = List[Tuple[str, Optional[str], Optional[str]]]
def edit_image(inp: Optional[str], out: Optional[str], edits: Commands) -> int: ...
def edit_datadir(datadir: str, out: Optional[str], edits: Commands) -> int:
replaced: Dict[str, Optional[str]]
args: List[str]
found: List[int]
def parse_commands(args: Sequence[str]) -> Tuple[Optional[str], Optional[str], Commands]:
commands: Commands
# def edit_image(inp: Optional[str], out: Optional[str], edits: List[Tuple[str, Optional[str], Optional[str]]]) -> None: ...
# def edit_datadir(datadir: str, out: Optional[str], edits: List[Tuple[str, Optional[str], Optional[str]]]) -> int: ...
# def parsing(args: Any) -> Tuple[Optional[str], Optional[str], List[Tuple[str, Optional[str], Optional[str]]]]: ...
def docker_tag(inp: Optional[str], out: Optional[str]) -> None: ...
def run(*args: str) -> int: ...