feat(RES-57): Add visibility to control scope of generated code (#18)
All checks were successful
gitea-openium/resgen.swift/pipeline/head This commit looks good
All checks were successful
gitea-openium/resgen.swift/pipeline/head This commit looks good
Add visibility parameter: public, package, internal, private Impacted command: analytics, colors, fonts, images, strings, tags Reviewed-on: #18
This commit is contained in:
34
Sources/ToolCore/ExtensionVisibility.swift
Normal file
34
Sources/ToolCore/ExtensionVisibility.swift
Normal file
@@ -0,0 +1,34 @@
|
||||
//
|
||||
// ExtensionVisibility.swift
|
||||
// ResgenSwift
|
||||
//
|
||||
// Created by Thibaut Schmitt on 17/07/2025.
|
||||
//
|
||||
|
||||
import ArgumentParser
|
||||
|
||||
package enum ExtensionVisibility: String, CustomStringConvertible, ExpressibleByArgument {
|
||||
|
||||
case `public`
|
||||
case `private`
|
||||
case `internal`
|
||||
case `package`
|
||||
|
||||
// MARK: - CustomStringConvertible
|
||||
|
||||
package var description: String {
|
||||
switch self {
|
||||
case .public:
|
||||
"public"
|
||||
|
||||
case .private:
|
||||
"private"
|
||||
|
||||
case .internal:
|
||||
"internal"
|
||||
|
||||
case .package:
|
||||
"package"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user