Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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);
        }