MCPcopy Create free account
hub / github.com/FastLED/FastLED / save_json_metadata

Function save_json_metadata

ci/compiler/build_utils.py:175–186  ·  view source on GitHub ↗

Save metadata to JSON file. Args: path: Path to JSON metadata file metadata: Dictionary of metadata to save

(path: Path, metadata: dict[str, str])

Source from the content-addressed store, hash-verified

173
174
175def save_json_metadata(path: Path, metadata: dict[str, str]) -> None:
176 """Save metadata to JSON file.
177
178 Args:
179 path: Path to JSON metadata file
180 metadata: Dictionary of metadata to save
181 """
182 import json
183
184 path.parent.mkdir(parents=True, exist_ok=True)
185 with open(path, "w") as f:
186 json.dump(metadata, f, indent=2)
187
188
189def parse_depfile(depfile_path: Path) -> list[Path]:

Callers

nothing calls this directly

Calls 1

dumpMethod · 0.45

Tested by

no test coverage detected