From 0941d168db799af50eadc50cc3d56519a23cf15c Mon Sep 17 00:00:00 2001 From: Michael Bianco Date: Wed, 22 Feb 2023 10:08:53 -0700 Subject: [PATCH] docs: cannot actually pass compile time variables in swift this is nuts! --- Sources/hyper-focus/command.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/hyper-focus/command.swift b/Sources/hyper-focus/command.swift index 47043a6..c40726a 100644 --- a/Sources/hyper-focus/command.swift +++ b/Sources/hyper-focus/command.swift @@ -14,8 +14,9 @@ struct HyperFocus: ParsableCommand { mutating func run() throws { if version { - // TODO: get latest git tag at swift compile time, doesn't seem like this is easy - print("0.1.7") + // we cannot get the latest tag version at compile time + // https://stackoverflow.com/questions/27804227/using-compiler-variables-in-swift + print("v0.1.7") return }