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

This commit is contained in:
2022-09-01 15:59:16 +02:00
parent e9bc779da6
commit 8723019732
8 changed files with 10 additions and 8 deletions

View File

@ -32,8 +32,7 @@ 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 }

View File

@ -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
} }

View File

@ -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 }

View File

@ -39,8 +39,7 @@ extension ColorsConfiguration: Runnable {
extensionSuffix extensionSuffix
] ]
} }
print("Colors args:")
dump(args) Colors.main(args)
//Colors.main(args)
} }
} }

View File

@ -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",

View File

@ -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 }

View File

@ -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 }

View File

@ -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 }