All checks were successful
gitea-openium/resgen.swift/pipeline/head This commit looks good
Add bundle parameter to define if resource should be load from Bundle.main (app) or Bundle.module (SPM package) Reviewed-on: #19
27 lines
433 B
Swift
27 lines
433 B
Swift
//
|
|
// AssetBundle.swift
|
|
// ResgenSwift
|
|
//
|
|
// Created by Thibaut Schmitt on 21/07/2025.
|
|
//
|
|
|
|
import ArgumentParser
|
|
|
|
package enum AssetBundle: String, CustomStringConvertible, ExpressibleByArgument {
|
|
|
|
case main
|
|
case module
|
|
|
|
// MARK: - CustomStringConvertible
|
|
|
|
package var description: String {
|
|
switch self {
|
|
case .main:
|
|
"main"
|
|
|
|
case .module:
|
|
"module"
|
|
}
|
|
}
|
|
}
|