print("Hello, world!")

import TextInputSources
import Commander

let main = Group {
    $0.command("list", description: "List enabled input sources") {
        for inputSource in TextInputSources.find() {
            print(inputSource.id)
        }
    }

    $0.command("select", description: "Select an input source") { (id: String) in
        guard let inputSource = TextInputSources.find(filtering: [.id: id]).first else {
            return
        }
        try TextInputSources.select(inputSource)
    }
}

main.run()

Add list and select subcommand
Add list and select subcommand
