App builds in xcodeproj (todo widget)

This commit is contained in:
Joe Mattiello
2023-03-02 00:40:11 -05:00
parent 4c9c5b1a56
commit f49fa24743
49 changed files with 498 additions and 295 deletions

View File

@@ -1,5 +1,6 @@
import ArgumentParser
import SwiftLintFramework
import os.log
extension Cargo {
struct Version: ParsableCommand {
@@ -12,8 +13,8 @@ extension Cargo {
func run() throws {
if verbose, let buildID = ExecutableInfo.buildID {
print("Version:", Self.value)
print("Build ID:", buildID)
os_log("Version: %@", type: .info , Self.value)
os_log("Build ID: %@", type: .info , buildID)
} else {
print(Self.value)
}

View File

@@ -1,5 +1,6 @@
import ArgumentParser
import SwiftLintFramework
import os.log
extension SwiftLint {
struct Version: ParsableCommand {
@@ -12,8 +13,8 @@ extension SwiftLint {
func run() throws {
if verbose, let buildID = ExecutableInfo.buildID {
print("Version:", Self.value)
print("Build ID:", buildID)
os_log("Version: %@", type: .info , Self.value)
os_log("Build ID: %@", type: .info , buildID)
} else {
print(Self.value)
}