Some checks failed
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit
47 lines
965 B
Swift
47 lines
965 B
Swift
//
|
|
// StringsConfiguration+ShellCommandable.swift
|
|
//
|
|
//
|
|
// Created by Thibaut Schmitt on 30/08/2022.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension StringsConfiguration: Runnable {
|
|
func run(force: Bool) {
|
|
var args = [String]()
|
|
|
|
if force {
|
|
args += ["-f"]
|
|
}
|
|
|
|
args += [
|
|
inputFile,
|
|
"--output-path",
|
|
outputPath,
|
|
"--langs",
|
|
langs,
|
|
"--default-lang",
|
|
defaultLang,
|
|
"--extension-output-path",
|
|
extensionOutputPath
|
|
]
|
|
|
|
if let extensionName = extensionName {
|
|
args += [
|
|
"--extension-name",
|
|
extensionName
|
|
]
|
|
}
|
|
|
|
if let extensionSuffix = extensionSuffix {
|
|
args += [
|
|
"--extension-suffix",
|
|
extensionSuffix
|
|
]
|
|
}
|
|
|
|
Stringium.main(args)
|
|
}
|
|
}
|