aboutsummaryrefslogtreecommitdiff
path: root/src/Commands/UpdateCommand.cs
blob: e3bdf9c0bca55b04ce0b37f2f15cd19271892818 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Threading.Tasks;

using Typin.Console;
using Typin.Attributes;

using VNLib.Tools.Build.Executor.Model;
using VNLib.Tools.Build.Executor.Constants;

namespace VNLib.Tools.Build.Executor.Commands
{
    [Command("update", Description = "Runs the build steps for updating application soure code")]
    public sealed class UpdateCommand(BuildPipeline pipeline, ConfigManager cfg) : BaseCommand(pipeline, cfg)
    {
        public override async ValueTask ExecStepsAsync(IConsole console)
        {
            //Run the update step
            await pipeline.DoStepUpdateSource();

            console.WithForegroundColor(ConsoleColor.Green, o => o.Output.WriteLine("Source update complete"));
        }

        public override IFeedManager[] Feeds => [];
    }
}