Add --project-directory option to generate command to easily use relative path
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit

This commit is contained in:
t.schmitt committed 2022-08-31 16:42:22 +02:00
1 parent 3d60513c08
commit e9bc779da6
22 files changed
+136 -67

No files matched your search

@@ -0,0 +1,18 @@
//
// StringExtensions.swift
//
//
// Created by Thibaut Schmitt on 31/08/2022.
//
import Foundation
extension String {
func prependIfRelativePath(_ prependPath: String) -> String {
if self.hasPrefix("/") {
return self
}
return prependPath + self
}
}