Files
resgen.swift/Sources/ResgenSwift/Generate/Runnable/FontsConfiguration+ShellCommandable.swift
Thibaut Schmitt 8723019732
Some checks failed
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit
Renable Colors generation + add print to each command to identify which configuration is used
2022-09-01 15:59:16 +02:00

43 lines
976 B
Swift

//
// FontsConfiguration+Runnable.swift
//
//
// Created by Thibaut Schmitt on 30/08/2022.
//
import Foundation
extension FontsConfiguration: Runnable {
func run(projectDirectory: String, force: Bool) {
var args = [String]()
if force {
args += ["-f"]
}
args += [
inputFile.prependIfRelativePath(projectDirectory),
"--extension-output-path",
extensionOutputPath.prependIfRelativePath(projectDirectory),
"--static-members",
"\(staticMembersOptions)"
]
if let extensionName = extensionName {
args += [
"--extension-name",
extensionName
]
}
if let extensionSuffix = extensionSuffix {
args += [
"--extension-suffix",
extensionSuffix
]
}
Fonts.main(args)
}
}