Skip to content

Commit fc6bfeb

Browse files
feat: add version output (#148)
* feat: add version output Signed-off-by: Rui Chen <[email protected]> * Add placeholder string for version via swift-argument-parser config --------- Signed-off-by: Rui Chen <[email protected]> Co-authored-by: ZachNagengast <[email protected]>
1 parent fa96cce commit fc6bfeb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/WhisperKitCLI/WhisperKitCLI.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@
44
import ArgumentParser
55
import Foundation
66

7+
let VERSION: String = "development"
8+
79
@available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
810
@main
911
struct WhisperKitCLI: AsyncParsableCommand {
1012
static let configuration = CommandConfiguration(
1113
commandName: "whisperkit-cli",
1214
abstract: "WhisperKit CLI",
1315
discussion: "Swift native speech recognition with Whisper for Apple Silicon",
16+
version: VERSION,
1417
subcommands: [TranscribeCLI.self]
1518
)
1619
}

0 commit comments

Comments
 (0)