def promptInstall(): GlobalUtils.clear() initJson() for item in jsonInstall: print(item["app"] + "\n-----------------\nINSERT DESCRIPTION!\n") choice = raw_input("Do you want to mark\033[1m " + item["app"] + "\033[0m for install? (y/n)").lower() if choice in yes: mark(item["app"], item["repo"], item["command"]) if markedCommand: choice = raw_input("The following code will now run, are you sure (y/n) \n" + str(markedCommand)).lower() if choice in yes: for item in markedCommand: InstallUtil.call(item) if markedRepo: choice = raw_input("The following repositories will be added, are you sure? (y/n)\n\033[1m" + str(markedRepo) + "\033[0m").lower() if choice in yes: for item in markedRepo: InstallUtil.addRepository(item) InstallUtil.update() else: print("No external repositories are required!") choice = raw_input("Are you sure you want to install the following programs? -\n " + str(markedInstall)) if choice in yes: for item in markedInstall: InstallUtil.install(item) close_json()
def bulkInstall(): initJson() for item in jsonInstall: InstallUtil.forceAddRepository(item["repo"]) InstallUtil.update() for item in root: if item["command"]: InstallUtil.call(item["command"]) InstallUtil.forceInstall(item["app"]) close_json()