aboutsummaryrefslogtreecommitdiff
path: root/src/Commands/BaseCommand.cs
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-09-06 20:50:06 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2024-09-06 20:50:06 -0400
commit7f1482c5d77b1b5f7e369ade925d2351d7623fa1 (patch)
treec99a0c8a0137e940492892977ef1e4f6f42b6d52 /src/Commands/BaseCommand.cs
parent79d824cfb0e0cc9ff4fab0e0c546a83c0edaae1c (diff)
cleanup and add fluent-ftp as an publishing location
Diffstat (limited to 'src/Commands/BaseCommand.cs')
-rw-r--r--src/Commands/BaseCommand.cs14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/Commands/BaseCommand.cs b/src/Commands/BaseCommand.cs
index 6362c22..25dcb0a 100644
--- a/src/Commands/BaseCommand.cs
+++ b/src/Commands/BaseCommand.cs
@@ -21,7 +21,7 @@ namespace VNLib.Tools.Build.Executor.Commands
[CommandOption("force", 'f', Description = "Forces the operation even if steps are required")]
public bool Force { get; set; }
- [CommandOption("modules", 'm', Description = "Only use the specified modules, comma separated list")]
+ [CommandOption("include", 'i', Description = "Only use the specified modules, comma separated list")]
public string? Modules { get; set; }
[CommandOption("exclude", 'x', Description = "Ignores the specified modules, comma separated list")]
@@ -79,11 +79,17 @@ namespace VNLib.Tools.Build.Executor.Commands
}
catch (OperationCanceledException)
{
- console.WithForegroundColor(ConsoleColor.Red, static o => o.Output.WriteLine("Operation cancelled"));
+ console.WithForegroundColor(
+ ConsoleColor.Red,
+ static o => o.Error.WriteLine("Operation cancelled")
+ );
}
- catch(BuildStepFailedException be)
+ catch(BuildFailedException be)
{
- console.WithForegroundColor(ConsoleColor.Red, o => o.Output.WriteLine("FATAL: Build step failed on module {0}, msg -> {1}", be.ArtifactName, be.Message));
+ console.WithForegroundColor(
+ ConsoleColor.Red,
+ o => o.Error.WriteLine("FATAL: Build step failed {0}", be.Message)
+ );
}
}