feat: Integrates precedence with command-line options, needs documentation.
All checks were successful
CI / Ubuntu (push) Successful in 2m31s

This commit is contained in:
2024-12-28 23:43:56 -05:00
parent f1eb883b93
commit 9dd30a1745
6 changed files with 44 additions and 4 deletions

View File

@@ -173,5 +173,19 @@ struct SemVarOptions: ParsableArguments {
)
var customCommand: Bool = false
@Option(
name: .long,
help: """
Set the precence to prefer version from file or strategy.
"""
)
var precedence: Configuration.SemVar.Precedence?
@OptionGroup var preRelease: PreReleaseOptions
}
extension Configuration.SemVar.Precedence: ExpressibleByArgument {
public init?(argument: String) {
self.init(rawValue: argument)
}
}