1. {
    2. "program": "shell",
    3. "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\"}\") }'",
    4. "scptarg": "",
    5. "charset": {
    6. "scriptCode": "",
    7. "outputCode": ""
    8. },
    9. "customOptions": {
    10. "bin": "",
    11. "argv": "",
    12. "ext": ""
    13. },
    14. "features": {
    15. "explain": "获取电池健康度",
    16. "platform": [
    17. "win32",
    18. "linux",
    19. "darwin"
    20. ],
    21. "icon": "logo/shell.png",
    22. "code": "key_1s46s6gkpcl",
    23. "cmds": [
    24. "dc"
    25. ]
    26. },
    27. "output": "text",
    28. "tags": [
    29. "命令行"
    30. ],
    31. "hasSubInput": false
    32. }