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

@@ -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
}