 import AppIconCore
 import ArgumentParser
+import Foundation
 
 struct AppIcon: ParsableCommand {
     static let configuration = CommandConfiguration(

        do {
            try ImageExtractor.extract(input: (image, platforms), output: (iconName, outputPath))
        } catch {
            print("Image Extraction Error has occured 😱")
            throw ExitCode(1)
        }

        do {
            try JsonExtractor.extract(input: platforms, output: (iconName, outputPath))
        } catch {
            print("Json Extraction Error has occured 😱")
            throw ExitCode(1)
        }


        version: "1.0.5"
    )

    @Argument(help: "The path to the base image (1024x1024.png)", completion: .file(extensions: ["png"]))
    var image: String

    @Option(help: "The name of the generated image")
