更新示例命令

This commit is contained in:
fofolee
2020-05-08 22:59:23 +08:00
parent 23f9073eb1
commit a8d21025e6
5 changed files with 4 additions and 3 deletions

View File

@@ -1 +1 @@
{"base64Ico":"","cmd":"#coding:utf8\nimport os\nimport re\nhost = re.findall(r'(.*\\/\\/|^)(.*?)(:|/|$).*', \"{{BrowserUrl}}\")[0][1]\nif {{isWin}}:\n\tcmd = \"ping -n 2 %s\" %host\nelse:\n\tcmd = \"ping -c 2 %s\" %host\nprint os.popen(cmd).read()","features":{"cmds":[{"label":"ping当前域名","match":{"app":"/chrome|iexplore|safari/i"},"type":"window"}],"code":"window_2kkl16x3wug","explain":"ping当前域名","icon":"logo/python.png"},"hasSubInput":false,"noKeyword":true,"output":"text","program":"python"}
{"features":{"code":"window_2kkl16x3wug","explain":"ping当前域名","cmds":[{"label":"ping当前域名","type":"window","match":{"app":["msedge.exe"]}}],"icon":"logo/python.png"},"program":"python","cmd":"#coding:utf8\nimport os\nimport re\nhost = re.findall(r'(.*\\/\\/|^)(.*?)(:|/|$).*', \"{{BrowserUrl}}\")[0][1]\nif {{isWin}}:\n\tcmd = \"ping -n 2 %s\" %host\nelse:\n\tcmd = \"ping -c 2 %s\" %host\nprint os.popen(cmd).read()","output":"text","hasSubInput":false}