1. {
    2. "features": {
    3. "code": "professional_1igskaj3qo8",
    4. "explain": "提取文件夹内容到父文件夹内",
    5. "cmds": [
    6. {
    7. "type": "files",
    8. "label": "提取文件到上层",
    9. "fileType": "directory",
    10. "minLength": 1,
    11. "maxLength": 1
    12. }
    13. ],
    14. "icon": "logo/custom.png",
    15. "platform": [
    16. "darwin"
    17. ]
    18. },
    19. "program": "custom",
    20. "cmd": "const path = require('path')\nconst process = require('child_process')\n\nconst target = path.resolve({{MatchedFiles}}[0].path)\nconst parent = path.resolve(`${target}/..`)\n\nprocess.execSync(`mv ${target}/* ${parent}`)\nprocess.execSync(`rm -rf ${target}`)\n",
    21. "output": "ignore",
    22. "hasSubInput": false,
    23. "scptarg": "",
    24. "charset": {
    25. "scriptCode": "",
    26. "outputCode": ""
    27. },
    28. "tags": [
    29. "Files"
    30. ],
    31. "customOptions": {
    32. "bin": "/usr/local/opt/node@14/bin/node",
    33. "argv": "",
    34. "ext": ""
    35. },
    36. "authorId": 47615,
    37. "authorName": "兰缘小妖"
    38. }