Initial commit

This commit is contained in:
2023-03-10 11:07:27 -05:00
commit c4ac51a1c0
11 changed files with 358 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import GitVersion
import ShellClient
@main
public struct swift_git_version {
public static func main() {
@Dependency(\.logger) var logger
@Dependency(\.gitVersionClient) var client
do {
let version = try client.currentVersion()
logger.info("Version: \(version.blue)")
} catch {
logger.info("\("Oops, something went wrong".red)")
}
}
}