Add support vor v15.1 (#2)
This commit is contained in:
committed by
GitHub
parent
977c01327f
commit
4688e9b0f7
@@ -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 {}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user