From 2ca83829e099dc24e3eb4c7e8f1d568c4257a568 Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Fri, 20 Dec 2024 20:21:03 -0500 Subject: [PATCH] feat: Working on cli-client. --- Sources/CliVersion/CliClient.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Sources/CliVersion/CliClient.swift b/Sources/CliVersion/CliClient.swift index 03fa31d..9223811 100644 --- a/Sources/CliVersion/CliClient.swift +++ b/Sources/CliVersion/CliClient.swift @@ -14,10 +14,17 @@ public extension DependencyValues { } } +/// Handles the command-line commands. @DependencyClient public struct CliClient { + + /// Build and update the version based on the git tag, or branch + sha. public var build: @Sendable (BuildOptions) throws -> String + + /// Generate a version file with an optional version that can be set manually. public var generate: @Sendable (GenerateOptions) throws -> String + + /// Update a version file manually. public var update: @Sendable (UpdateOptions) throws -> String }