🎨 Move typealias to top of type

This commit is contained in:
Ben Chatelain 2020-05-13 21:30:06 -06:00
parent c8f665f53a
commit 56ef7cb0c0

View file

@ -11,6 +11,7 @@ import StoreFoundation
public struct SignInCommand: CommandProtocol {
public typealias Options = SignInOptions
public let verb = "signin"
public let function = "Sign in to the Mac App Store"
@ -46,13 +47,12 @@ public struct SignInCommand: CommandProtocol {
}
public struct SignInOptions: OptionsProtocol {
public typealias ClientError = MASError
let username: String
let password: String
let dialog: Bool
public typealias ClientError = MASError
static func create(username: String) -> (_ password: String) -> (_ dialog: Bool) -> SignInOptions {
return { password in { dialog in
SignInOptions(username: username, password: password, dialog: dialog)