public async Task Build(CommandContext ctx, string name, string args = "") { await NotifyWorking(ctx, "Build " + name); var interactor = new Interactor(ctx); interactor.Start(); lock (ProjectMgr.GetLocker(name)) { ProjectMgr.BuildProject(name, args, interactor); } interactor.StopAndWait(); await NotifyFinish(ctx); }
public async Task Info(CommandContext ctx, string name) { await NotifyWorking(ctx, "Info " + name); var interactor = new Interactor(ctx); interactor.Start(); lock (ProjectMgr.GetLocker(name)) { ProjectMgr.InfoProject(name, interactor); } interactor.StopAndWait(); await NotifyFinish(ctx); }
public async Task Cmd(CommandContext ctx, string name, string command) { await NotifyWorking(ctx, "Cmd " + name); var interactor = new Interactor(ctx); interactor.Start(); lock (ProjectMgr.GetLocker(name)) { ProjectMgr.CmdProject(name, command, interactor, interactor); } interactor.StopAndWait(); await NotifyFinish(ctx); }
public async Task Create(CommandContext ctx, string name, string gitUrl) { await NotifyWorking(ctx, "Create " + name); var interactor = new Interactor(ctx); interactor.Start(); lock (ProjectMgr.GetLocker(name)) { ProjectMgr.CreateProject(name, gitUrl, interactor, interactor); } interactor.StopAndWait(); await NotifyFinish(ctx); }
public async Task Config(CommandContext ctx, string name, string prop, string data) { await NotifyWorking(ctx, "Config " + name); var interactor = new Interactor(ctx); interactor.Start(); lock (ProjectMgr.GetLocker(name)) { ProjectMgr.ConfigProject(name, prop, data, interactor); } interactor.StopAndWait(); await NotifyFinish(ctx); }