"wip"
This commit is contained in:
18
Sources/build-example/Build.swift
Normal file
18
Sources/build-example/Build.swift
Normal file
@@ -0,0 +1,18 @@
|
||||
import Foundation
|
||||
import GitVersion
|
||||
import ShellClient
|
||||
|
||||
/// Shows the intended use-case for building a command line tool that set's the version
|
||||
/// based on the tag in the git worktree.
|
||||
|
||||
@main
|
||||
public struct Build {
|
||||
public static func main() throws {
|
||||
@Dependency(\.shellClient) var shell: ShellClient
|
||||
|
||||
try shell.replacingNilWithVersionString(
|
||||
in: "Sources/example/Version.swift",
|
||||
build: SwiftBuild.release()
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user