mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2026-01-11 15:22:07 +08:00
微调
This commit is contained in:
1
CommandCollections/ping当前域名.json
Executable file
1
CommandCollections/ping当前域名.json
Executable file
@@ -0,0 +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"}
|
||||
Reference in New Issue
Block a user