private void UpdateInfo(string RepoURL, string RepoPAT) { if (File.Exists(Constants.UMOYACLIOutputFile)) { File.Delete(Constants.UMOYACLIOutputFile); } APIs.CaptureConsoleOutPut("info", "-u " + RepoURL + " -k " + RepoPAT, ResourceDirectory, Constants.UMOYACLIOutputFile); }
public void Add(Resource ResourceInfo) { Console.WriteLine("UMOYA add " + ResourceInfo.Id + "@" + ResourceInfo.Version); if (File.Exists(Constants.UMOYACLIOutputFile)) { File.Delete(Constants.UMOYACLIOutputFile); } APIs.CaptureConsoleOutPut("add", ResourceInfo.Id + "@" + ResourceInfo.Version, ResourceDirectory, Constants.UMOYACLIOutputFile); }
public void Init(string RepoURL, string RepoVersion, string RepoPAT) { APIs.InitZMOD(ResourceDirectory); UpdateInfo(RepoURL + "/" + RepoVersion + "/index.json", RepoPAT); }
public async Task Init(string RepoURL, string RepoVersion, string RepoPAT) { await APIs.InitZMOD(ResourceDirectory); await UpdateInfo(RepoURL + "/" + RepoVersion + "/index.json", RepoPAT); }