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>Local Path: </span><span>' . $InitialPath . '</span></div><div class="selection">Operation: <input id="operation_create"type=radio checked name="operation"value="create"><label for="operation_create">Create </label><input id="operation_push"type=radio name="operation"value="push"><label for="operation_push">Push </label><input id="operation_pull"type=radio name="operation"value="pull"><label for="operation_pull">Pull </label><input id="operation_clone"type=radio name="operation"value="clone"><label for="operation_clone">Clone </label><input id="operation_delete"type=radio name="operation"value="delete"><label for="operation_delete">Delete </label></div><div class="selection">Platform: <input id="platform_github"type=radio checked name="platform"value="github"><label for="platform_github">Github </label><input id="platform_gitlab"type=radio name="platform"value="gitlab"><label for="platform_gitlab">Gitlab </label><input id="platform_gitee"type=radio name="platform"value="gitee"><label for="platform_gitee">Gitee </label><input id="platform_gogs"type=radio name="platform"value="gogs"><label for="platform_gogs">git.yoq.me </label><input id="platform_coding"type=radio name="platform"value="coding"><label for="platform_coding">Coding </label></div><div><input class="submtbtn"type="submit"name="mysubmit"value="run it"></div></form></body><script></script></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
|