Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /zloeber_SecretZero /src /secretzero /hcl_values.py
| """Shared HCL literal formatting for Terraform-related output.""" | |
| from __future__ import annotations | |
| import json | |
| def format_hcl_string(value: str) -> str: | |
| """Render a Python string as an HCL double-quoted literal.""" | |
| return json.dumps(value) | |
| def format_hcl_assignment(key: str, value: str) -> str: | |
| """Render a single top-level tfvars assignment.""" | |
| return f"{key} = {format_hcl_string(value)}" | |
Xet Storage Details
- Size:
- 416 Bytes
- Xet hash:
- afc74300918335867c7e1cacfec7ab10ed136ce9b046983a1027867e70081cf3
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.