English fallback
This translation is missing; the canonical English reference follows.
Internal local image CLI controller¶
RunLocalImageCommands enrolls the Experimental image export-local command in the installed CLI and interactive shell. Planning produces a pure exact source descriptor. Execution requires the selected actor, existing scope and policy plus explicit approve-local-image. The generated archive is never automatically registered or scanned. Command handlers and parser details are Internal; the documented command is the product surface.
See docs/LOCAL_IMAGE_REFERENCE.md and ADR 0114.
fuzzy1337.local_image_commands
¶
Explicit local-reference export namespace, independent of archive scan consent.
ExplicitLocalPath(value: str) -> Path
¶
Reject ambiguous selected path spelling before normalization or filesystem reads.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str
|
Exact absolute operator-selected trusted executable or socket path. |
required |
Returns:
| Type | Description |
|---|---|
Path
|
Unmodified canonical lexical Path without resolving filesystem aliases. |
Source code in fuzzy1337/local_image_commands.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | |
LocalImageParser() -> argparse.ArgumentParser
¶
Build a closed export-only grammar with explicit plan and execution alternatives.
Returns:
| Type | Description |
|---|---|
ArgumentParser
|
Parser without a scanner, registry operation or implicit Docker discovery option. |
Source code in fuzzy1337/local_image_commands.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | |
RunLocalImageCommands(argv: Sequence[str], output: TextIO, *, json_output: bool = False) -> int
¶
Dispatch pure source planning or one explicitly approved local export job.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
argv
|
Sequence[str]
|
Explicit arguments after the image namespace. |
required |
output
|
TextIO
|
Caller-owned text stream for stable diagnostics and factual summaries. |
required |
json_output
|
bool
|
Select detached machine-readable plan or outcome. |
False
|
Returns:
| Type | Description |
|---|---|
int
|
Zero completed, two invalid, three denied, four failed, or 130 cancelled. |
Source code in fuzzy1337/local_image_commands.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | |