We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
有些跨平台的命令,比如 adb,不同的平台配置不一样 (cmd vs shell),但是想用同样的关键字触发。
The text was updated successfully, but these errors were encountered:
自己试了一下写跨平台的脚本
{ "features": { "code": "key_1hrz1fagcvr", "explain": "adb", "cmds": [ "adb" ], "icon": "" }, "program": "javascript", "cmd": "const { spawn } = require('child_process')\nconst child = spawn('adb', '{{subinput}}'.trim().split(/\\s+/))\nchild.stdout.pipe(process.stdout)\nchild.stderr.pipe(process.stderr)\nchild.on('exit', code => process.exit(code))", "output": "text", "hasSubInput": true }
const { spawn } = require('child_process') const child = spawn('adb', '{{subinput}}'.trim().split(/\s+/)) child.stdout.pipe(process.stdout) child.stderr.pipe(process.stderr) child.on('exit', code => process.exit(code))
Windows 下运行正常, ubuntu 下面按回车没反应,求教该如何调试?
Sorry, something went wrong.
近期将会有一个较大的更新,其中就包括平台选项,还有一个更新就是,win下选择shell的话可以通过wsl执行shell脚本,so在wsl下整个adb,也可以实现一个通用命令搞定
No branches or pull requests
有些跨平台的命令,比如 adb,不同的平台配置不一样 (cmd vs shell),但是想用同样的关键字触发。
The text was updated successfully, but these errors were encountered: