From ae23721fc84d79b76919445e60b715c0f291f17b Mon Sep 17 00:00:00 2001 From: Dave Dunkin Date: Tue, 25 Oct 2022 11:24:31 -0700 Subject: [PATCH 1/2] Add parallel flag. --- src/Faithlife.Build/BuildRunner.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Faithlife.Build/BuildRunner.cs b/src/Faithlife.Build/BuildRunner.cs index e436652..4fc3921 100644 --- a/src/Faithlife.Build/BuildRunner.cs +++ b/src/Faithlife.Build/BuildRunner.cs @@ -55,6 +55,7 @@ public static async Task ExecuteAsync(string[] args, Action initi var dryRunFlag = buildApp.AddFlag("-n|--dry-run", "Don't execute target actions"); var skipDependenciesFlag = buildApp.AddFlag("-s|--skip-dependencies", "Don't run any target dependencies"); var skipOption = buildApp.AddOption("--skip ", "Skip the comma-delimited target dependencies"); + var parallelFlag = buildApp.AddFlag("--parallel", "Run targets in parallel"); var noColorFlag = buildApp.AddFlag("--no-color", "Disable color output"); var showTreeFlag = buildApp.AddFlag("--show-tree", "Show the dependency tree"); var helpFlag = buildApp.AddFlag("-h|-?|--help", "Show build help"); @@ -115,6 +116,8 @@ void AddTargetAndDependencies(BuildTarget target) bullseyeArgs.Add("--list-tree"); if (dryRunFlag.Value) bullseyeArgs.Add("--dry-run"); + if (parallelFlag.Value) + bullseyeArgs.Add("--parallel"); bullseyeArgs.Add("--no-extended-chars"); try From 5b696d0b30c73f28976f55f9c788eab44fb1d71c Mon Sep 17 00:00:00 2001 From: Dave Dunkin Date: Tue, 25 Oct 2022 14:10:08 -0700 Subject: [PATCH 2/2] Add verbose flag. --- src/Faithlife.Build/BuildRunner.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Faithlife.Build/BuildRunner.cs b/src/Faithlife.Build/BuildRunner.cs index 4fc3921..19f5b81 100644 --- a/src/Faithlife.Build/BuildRunner.cs +++ b/src/Faithlife.Build/BuildRunner.cs @@ -58,6 +58,7 @@ public static async Task ExecuteAsync(string[] args, Action initi var parallelFlag = buildApp.AddFlag("--parallel", "Run targets in parallel"); var noColorFlag = buildApp.AddFlag("--no-color", "Disable color output"); var showTreeFlag = buildApp.AddFlag("--show-tree", "Show the dependency tree"); + var verboseFlag = buildApp.AddFlag("--verbose", "Show verbose output"); var helpFlag = buildApp.AddFlag("-h|-?|--help", "Show build help"); var targetsArgument = commandLineApp.Argument("targets", "The targets to build", multipleValues: true); @@ -118,6 +119,8 @@ void AddTargetAndDependencies(BuildTarget target) bullseyeArgs.Add("--dry-run"); if (parallelFlag.Value) bullseyeArgs.Add("--parallel"); + if (verboseFlag.Value) + bullseyeArgs.Add("--verbose"); bullseyeArgs.Add("--no-extended-chars"); try