12345678910111213141516 |
- $InitialPath = "<curpath>";
- $GETResult = urldecode(html('<html><style>body{text-align:center}.selection{text-align:left;margin-left:10%;margin-right:10%;padding-bottom:20px}.submtbtn{padding-left:20px;padding-right:20px;padding-top:10px;padding-bottom:10px}</style><body><div><h1>repo_sync tools v1.12</h1></div><form method="get"action="xys:"><div class="selection"><span>Repo: </span><span>' . $InitialPath . '</span></div><div class="selection">Operation:<input type=radio checked name="operation"value="create">Create <input type=radio name="operation"value="push">Push <input type=radio name="operation"value="pull">Pull <input type=radio name="operation"value="delete">Delete </div><div class="selection">Platform:<input type=radio checked name="platform"value="github">Github <input type=radio name="platform"value="gitlab">Gitlab <input type=radio name="platform"value="gitee">Gitee <input type=radio name="platform"value="gogs">git.yoq.me <input type=radio name="platform"value="coding">Coding </div><div><input class="submtbtn"type="submit"name="mysubmit"value="run it"></div></form></body></html>'));
- IF ("$GETResult"=="") {sub "_Cancel";}
- // substr $GETResult, $GETResult, 1;
- $operation1=gettoken($GETResult, "1", "&");
- $platform1=gettoken($GETResult, "2", "&");
- $ok=gettoken($a, "3", "&");
- $operation=gettoken($operation1,2,"=");
- $platform=gettoken($platform1,2,"=");
- run "cmd /k cd /d F:\dist\Develop\Python\crawl_github\dist && repo_sync $operation --platform $platform --repo_path <curpath>"
- "_Cancel"
- // msg "Cancled by user";
- sub "_EOF";
- "_EOF"
- END 1==1;
- //EOF
|