Remove Shell invocation as many as possible (high cost in term of speed of execution)
Some checks failed
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit

This commit is contained in:
2022-09-02 15:57:20 +02:00
parent 8723019732
commit e3258453bb
15 changed files with 95 additions and 119 deletions

View File

@ -46,9 +46,10 @@ struct Generate: ParsableCommand {
// Execute commands
configuration.runnableConfigurations
.forEach {
let begin = Date()
$0.run(projectDirectory: options.projectDirectory,
force: options.forceGeneration)
print("\n")
print("Took: \(Date().timeIntervalSince(begin))s\n")
}
print("[\(Self.toolName)] Resgen ended")

View File

@ -12,7 +12,7 @@ extension ImagesConfiguration: Runnable {
var args = [String]()
if force {
args += ["-F"] // Images has a -f and -F options
args += ["-f"] // Images has a -f and -F options
}
args += [