aboutsummaryrefslogtreecommitdiff
path: root/src/Commands/UpdateCommand.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Commands/UpdateCommand.cs')
-rw-r--r--src/Commands/UpdateCommand.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/Commands/UpdateCommand.cs b/src/Commands/UpdateCommand.cs
new file mode 100644
index 0000000..e3bdf9c
--- /dev/null
+++ b/src/Commands/UpdateCommand.cs
@@ -0,0 +1,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 => [];
+ }
+} \ No newline at end of file