websoft9/cli/controller.py

26 lines
570 B
Python
Raw Normal View History

2021-09-26 15:05:59 +00:00
import model, os
2021-09-26 09:57:34 +00:00
path_repo = "./data/application.list"
path_project = ""
2021-09-26 15:05:59 +00:00
# for Git clone HA
github_url = ("https://github.com", "https://github.com.cnpmjs.org", "https://hub.fastgit.org")
2021-09-26 09:57:34 +00:00
class Print:
def __init__(self):
pass
def printRepo():
2021-09-26 15:05:59 +00:00
model.FileOp.printJson(path_repo)
class Github:
def __init__(self):
pass
def gitClone(name: str):
cmd = "git clone --depth=1 " + model.SmoothUrl.res(github_url) + "/websoft9/docker-" + name + " repo/docker-"+name
print(cmd)
os.system(cmd)