mas/mas-cli/Commands/SignOut.swift
2016-02-14 01:34:49 +00:00

18 lines
No EOL
450 B
Swift

//
// SignOut.swift
// mas-cli
//
// Created by Andrew Naylor on 14/02/2016.
// Copyright © 2016 Andrew Naylor. All rights reserved.
//
struct SignOutCommand: CommandType {
typealias Options = NoOptions<MASError>
let verb = "signout"
let function = "Sign out of the Mac App Store"
func run(options: Options) -> Result<(), MASError> {
CKAccountStore.sharedAccountStore().signOut()
return .Success(())
}
}