Files
swift-bump-version/Sources/bump-version/Commands/BuildCommand.swift
Michael Housh a0f8611a76
All checks were successful
CI / Ubuntu (push) Successful in 2m52s
feat: Working on command-line documentation.
2024-12-26 12:13:42 -05:00

26 lines
716 B
Swift

import ArgumentParser
import CliClient
import CliDoc
import Foundation
import ShellClient
// NOTE: This command is only used with the build with version plugin.
struct BuildCommand: AsyncParsableCommand {
static let commandName = "build"
static let configuration: CommandConfiguration = .init(
commandName: Self.commandName,
abstract: Abstract.default("Used for the build with version plugin.").render(),
discussion: Discussion {
"This should generally not be interacted with directly, outside of the build plugin."
},
shouldDisplay: false
)
@OptionGroup var globals: GlobalOptions
func run() async throws {
try await globals.run(\.build, command: Self.commandName)
}
}