Add support vor v15.1 (#2)

This commit is contained in:
Niklas Amslgruber
2024-01-13 10:26:40 +01:00
committed by GitHub
parent 977c01327f
commit 4688e9b0f7
6 changed files with 3850 additions and 7 deletions

View File

@@ -13,7 +13,8 @@ public enum EmojiManager {
case v13_1 = 13.1
case v14 = 14
case v15 = 15
case v15_1 = 15.1
public var fileName: String {
return "emojis_v\(versionIdentifier)"
}
@@ -26,6 +27,8 @@ public enum EmojiManager {
return "14.0"
case .v15:
return "15.0"
case .v15_1:
return "15.1"
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -9,6 +9,7 @@ import Foundation
import ArgumentParser
import EmojiKit
#if os(macOS)
struct EmojiDownloader: ParsableCommand, AsyncParsableCommand {
static let configuration: CommandConfiguration = CommandConfiguration(
@@ -121,5 +122,5 @@ struct EmojiDownloader: ParsableCommand, AsyncParsableCommand {
}
}
}
#endif
extension EmojiManager.Version: ExpressibleByArgument {}

View File

@@ -11,11 +11,13 @@ import ArgumentParser
@main
struct EmojiScripts: ParsableCommand, AsyncParsableCommand {
#if os(macOS)
static let configuration: CommandConfiguration = CommandConfiguration(
commandName: "emojis",
abstract: "Manage Emojis from Unicode",
subcommands: [
EmojiDownloader.self,
EmojiDownloader.self
]
)
#endif
}

View File

@@ -44,7 +44,7 @@ class UnicodeParser {
/// Split line into list of entries
let lineComponents = line.split(separator: ";")
/// Get hex-string from compenents
/// Get hex-string from components
guard let hexString = lineComponents.map({ $0.trim() }).first else {
continue
}