{ "program": "shell", "cmd": "ioreg -brn AppleSmartBattery \\\n | awk '/\"DesignCapacity\" / { FACROTY=$3 } \\\n /\"AppleRawMaxCapacity\" / { CURRENT=$3 } \\\n /\"CycleCount\" / { CYCLE=$3 }\n END { print (\"{\\\"health\\\":\"CURRENT/FACROTY*100\",\\\"cycle\\\":\"CYCLE\"}\") }'", "scptarg": "", "charset": { "scriptCode": "", "outputCode": "" }, "customOptions": { "bin": "", "argv": "", "ext": "" }, "features": { "explain": "获取电池健康度", "platform": [ "win32", "linux", "darwin" ], "icon": "logo/shell.png", "code": "key_1s46s6gkpcl", "cmds": [ "dc" ] }, "output": "text", "tags": [ "命令行" ], "hasSubInput": false}