MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / option_value

Function option_value

tools/audiocpp_cli/run_audiocpp_cli_path_tests.py:25–30  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

23
24
25def option_value(value: Any) -> str:
26 if isinstance(value, bool):
27 return "true" if value else "false"
28 if isinstance(value, (dict, list)):
29 return json.dumps(value, ensure_ascii=False, separators=(",", ":"))
30 return str(value)
31
32
33def append_key_values(command: list[str], flag: str, values: dict[str, Any]) -> None:

Callers 2

append_key_valuesFunction · 0.85
request_to_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected