Skip to content

Commit

Permalink
Runs pre-gen command before validating project (#1500)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbs authored Sep 12, 2024
1 parent d5656b6 commit 2cf88e8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/XcodeGenCLI/Commands/GenerateCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ class GenerateCommand: ProjectCommand {
}
}

// run pre gen command
if let command = project.options.preGenCommand {
try Task.run(bash: command, directory: projectDirectory.absolute().string)
}

// validate project
do {
try project.validateMinimumXcodeGenVersion(version)
Expand All @@ -77,11 +82,6 @@ class GenerateCommand: ProjectCommand {
throw GenerationError.validationError(error)
}

// run pre gen command
if let command = project.options.preGenCommand {
try Task.run(bash: command, directory: projectDirectory.absolute().string)
}

// generate plists
info("⚙️ Generating plists...")
let fileWriter = FileWriter(project: project)
Expand Down

0 comments on commit 2cf88e8

Please sign in to comment.