MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / readPlistString

Function readPlistString

scripts/brand-dev-electron.mjs:91–101  ·  view source on GitHub ↗

Current value of `key`, or null when the key is absent.

(plistPath, key)

Source from the content-addressed store, hash-verified

89
90/** Current value of `key`, or null when the key is absent. */
91function readPlistString(plistPath, key) {
92 try {
93 return execFileSync(
94 "plutil",
95 ["-extract", key, "raw", "-o", "-", plistPath],
96 { encoding: "utf8" },
97 ).trim();
98 } catch {
99 return null;
100 }
101}
102
103function writePlistString(plistPath, key, value) {
104 execFileSync("plutil", ["-replace", key, "-string", value, plistPath], {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected