MCPcopy Create free account
hub / github.com/usestrix/strix / update_layer_status

Function update_layer_status

strix/interface/utils.py:1365–1375  ·  view source on GitHub ↗
(layers_info: dict[str, str], layer_id: str, layer_status: str)

Source from the content-addressed store, hash-verified

1363
1364
1365def update_layer_status(layers_info: dict[str, str], layer_id: str, layer_status: str) -> None:
1366 if "Pull complete" in layer_status or "Already exists" in layer_status:
1367 layers_info[layer_id] = "✓"
1368 elif "Downloading" in layer_status:
1369 layers_info[layer_id] = "↓"
1370 elif "Extracting" in layer_status:
1371 layers_info[layer_id] = "📦"
1372 elif "Waiting" in layer_status:
1373 layers_info[layer_id] = "⏳"
1374 else:
1375 layers_info[layer_id] = "•"
1376
1377
1378def process_pull_line(

Callers 1

process_pull_lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected