feat: Renaming to bump-version
All checks were successful
CI / Ubuntu (push) Successful in 2m55s

This commit is contained in:
2024-12-24 16:39:38 -05:00
parent 9ea0ab566e
commit 322327d6d7
12 changed files with 6 additions and 6 deletions

View File

@@ -0,0 +1,26 @@
import ArgumentParser
import CliClient
import Dependencies
struct BumpCommand: AsyncParsableCommand {
static let configuration = CommandConfiguration(
commandName: "bump",
abstract: "Bump version of a command-line tool."
)
@OptionGroup var globals: GlobalOptions
@Flag(
help: """
The semvar bump option, this is ignored if the configuration is set to use a branch/commit sha strategy.
"""
)
var bumpOption: CliClient.BumpOption = .patch
func run() async throws {
try await globals.run(\.bump, args: bumpOption)
}
}
extension CliClient.BumpOption: EnumerableFlag {}