Skip to content

Commit

Permalink
Merge pull request #40 from ddunkin/parallel-flag
Browse files Browse the repository at this point in the history
Add parallel and verbose flags
  • Loading branch information
ddunkin authored Oct 30, 2022
2 parents a896d9c + 5b696d0 commit f61b0b0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Faithlife.Build/BuildRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ public static async Task<int> ExecuteAsync(string[] args, Action<BuildApp> 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 <targets>", "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 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);

Expand Down Expand Up @@ -115,6 +117,10 @@ void AddTargetAndDependencies(BuildTarget target)
bullseyeArgs.Add("--list-tree");
if (dryRunFlag.Value)
bullseyeArgs.Add("--dry-run");
if (parallelFlag.Value)
bullseyeArgs.Add("--parallel");
if (verboseFlag.Value)
bullseyeArgs.Add("--verbose");
bullseyeArgs.Add("--no-extended-chars");

try
Expand Down

0 comments on commit f61b0b0

Please sign in to comment.