Delete lang option and add target option

This commit is contained in:
Loris Perret 2023-12-05 16:55:45 +01:00
parent 1a45ec7b0d
commit fa5bf192e8
3 changed files with 7 additions and 7 deletions

View File

@ -72,7 +72,7 @@ colors:
tags:
-
inputFile: ./Tags/sampleTags.txt
lang: ium
target: "matomo firebase"
extensionOutputPath: ./Tags/Generated
extensionName: Tags
extensionSuffix: GenAllScript

View File

@ -266,7 +266,7 @@ struct StringsConfiguration: Codable, CustomDebugStringConvertible {
struct TagsConfiguration: Codable, CustomDebugStringConvertible {
let inputFile: String
let lang: String
let target: String
let extensionOutputPath: String
let extensionName: String?
let extensionSuffix: String?
@ -280,13 +280,13 @@ struct TagsConfiguration: Codable, CustomDebugStringConvertible {
}
internal init(inputFile: String,
lang: String,
target: String,
extensionOutputPath: String,
extensionName: String?,
extensionSuffix: String?,
staticMembers: Bool?) {
self.inputFile = inputFile
self.lang = lang
self.target = target
self.extensionOutputPath = extensionOutputPath
self.extensionName = extensionName
self.extensionSuffix = extensionSuffix
@ -297,7 +297,7 @@ struct TagsConfiguration: Codable, CustomDebugStringConvertible {
"""
Tags configuration:
- Input file: \(inputFile)
- Lang: \(lang)
- Target: \(target)
- Extension output path: \(extensionOutputPath)
- Extension name: \(extensionName ?? "-")
- Extension suffix: \(extensionSuffix ?? "-")

View File

@ -17,8 +17,8 @@ extension TagsConfiguration: Runnable {
args += [
inputFile.prependIfRelativePath(projectDirectory),
"--lang",
lang,
"--target",
target,
"--extension-output-path",
extensionOutputPath.prependIfRelativePath(projectDirectory),
"--static-members",