mirror of
https://github.com/mas-cli/mas
synced 2025-02-16 20:48:30 +00:00
🎨 Move typealias to top of type
This commit is contained in:
parent
c8f665f53a
commit
56ef7cb0c0
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue