Skip to content

Commit

Permalink
feat: add version output (#148)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
chenrui333 and ZachNagengast authored Jun 7, 2024
1 parent fa96cce commit fc6bfeb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/WhisperKitCLI/WhisperKitCLI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@
import ArgumentParser
import Foundation

let VERSION: String = "development"

@available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
@main
struct WhisperKitCLI: AsyncParsableCommand {
static let configuration = CommandConfiguration(
commandName: "whisperkit-cli",
abstract: "WhisperKit CLI",
discussion: "Swift native speech recognition with Whisper for Apple Silicon",
version: VERSION,
subcommands: [TranscribeCLI.self]
)
}

0 comments on commit fc6bfeb

Please sign in to comment.