Renable Colors generation + add print to each command to identify which configuration is used
Some checks failed
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit
Some checks failed
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit
This commit is contained in:
@ -32,7 +32,6 @@ struct Colors: ParsableCommand {
|
|||||||
|
|
||||||
public func run() throws {
|
public func run() throws {
|
||||||
print("[\(Self.toolName)] Starting colors generation")
|
print("[\(Self.toolName)] Starting colors generation")
|
||||||
print("[\(Self.toolName)] Will use inputFile \(options.inputFile) to generate \(options.colorStyle) colors in xcassets \(options.xcassetsPath)")
|
|
||||||
|
|
||||||
// Check requirements
|
// Check requirements
|
||||||
guard checkRequirements() else { return }
|
guard checkRequirements() else { return }
|
||||||
|
@ -23,7 +23,7 @@ class ColorFileParser {
|
|||||||
.replacingOccurrences(of: "=", with: "") // Keep compat with current file format
|
.replacingOccurrences(of: "=", with: "") // Keep compat with current file format
|
||||||
|
|
||||||
guard colorLineCleanedUp.hasPrefix("#") == false, colorLineCleanedUp.isEmpty == false else {
|
guard colorLineCleanedUp.hasPrefix("#") == false, colorLineCleanedUp.isEmpty == false else {
|
||||||
print("[\(Colors.toolName)] ⚠️ BadFormat or empty line (line number: \(lineNumber + 1)). Skip this line")
|
debugPrint("[\(Colors.toolName)] ⚠️ BadFormat or empty line (line number: \(lineNumber + 1)). Skip this line")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ struct Fonts: ParsableCommand {
|
|||||||
|
|
||||||
public func run() throws {
|
public func run() throws {
|
||||||
print("[\(Self.toolName)] Starting fonts generation")
|
print("[\(Self.toolName)] Starting fonts generation")
|
||||||
|
print("[\(Self.toolName)] Will use inputFile \(options.inputFile) to generate fonts")
|
||||||
|
|
||||||
// Check requirements
|
// Check requirements
|
||||||
guard checkRequirements() else { return }
|
guard checkRequirements() else { return }
|
||||||
|
@ -39,8 +39,7 @@ extension ColorsConfiguration: Runnable {
|
|||||||
extensionSuffix
|
extensionSuffix
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
print("Colors args:")
|
|
||||||
dump(args)
|
Colors.main(args)
|
||||||
//Colors.main(args)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ extension FontsConfiguration: Runnable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
args += [
|
args += [
|
||||||
inputFile,
|
inputFile.prependIfRelativePath(projectDirectory),
|
||||||
"--extension-output-path",
|
"--extension-output-path",
|
||||||
extensionOutputPath.prependIfRelativePath(projectDirectory),
|
extensionOutputPath.prependIfRelativePath(projectDirectory),
|
||||||
"--static-members",
|
"--static-members",
|
||||||
|
@ -31,6 +31,7 @@ struct Images: ParsableCommand {
|
|||||||
|
|
||||||
mutating func run() {
|
mutating func run() {
|
||||||
print("[\(Self.toolName)] Starting images generation")
|
print("[\(Self.toolName)] Starting images generation")
|
||||||
|
print("[\(Self.toolName)] Will use inputFile \(options.inputFile) to generate images in xcassets \(options.xcassetsPath)")
|
||||||
|
|
||||||
// Check requirements
|
// Check requirements
|
||||||
guard checkRequirements() else { return }
|
guard checkRequirements() else { return }
|
||||||
|
@ -32,6 +32,7 @@ struct Stringium: ParsableCommand {
|
|||||||
|
|
||||||
mutating func run() {
|
mutating func run() {
|
||||||
print("[\(Self.toolName)] Starting strings generation")
|
print("[\(Self.toolName)] Starting strings generation")
|
||||||
|
print("[\(Self.toolName)] Will use inputFile \(options.inputFile) to generate strings for \(options.langs) (default lang: \(options.defaultLang)")
|
||||||
|
|
||||||
// Check requirements
|
// Check requirements
|
||||||
guard checkRequirements() else { return }
|
guard checkRequirements() else { return }
|
||||||
|
@ -32,7 +32,8 @@ struct Tags: ParsableCommand {
|
|||||||
// MARK: - Run
|
// MARK: - Run
|
||||||
|
|
||||||
mutating func run() {
|
mutating func run() {
|
||||||
print("[\(Self.toolName)] Starting tagss generation")
|
print("[\(Self.toolName)] Starting tags generation")
|
||||||
|
print("[\(Self.toolName)] Will use inputFile \(options.inputFile) to generate strings for lang: \(options.lang)")
|
||||||
|
|
||||||
// Check requirements
|
// Check requirements
|
||||||
guard checkRequirements() else { return }
|
guard checkRequirements() else { return }
|
||||||
|
Reference in New Issue
Block a user