mirror of
https://github.com/mas-cli/mas
synced 2024-12-22 09:53:08 +00:00
22 lines
562 B
Swift
22 lines
562 B
Swift
//
|
|
// SignOut.swift
|
|
// mas-cli
|
|
//
|
|
// Created by Andrew Naylor on 14/02/2016.
|
|
// Copyright © 2016 Andrew Naylor. All rights reserved.
|
|
//
|
|
|
|
import Commandant
|
|
import Result
|
|
|
|
struct SignOutCommand: CommandProtocol {
|
|
typealias Options = NoOptions<MASError>
|
|
let verb = "signout"
|
|
let function = "Sign out of the Mac App Store"
|
|
|
|
func run(_ options: Options) -> Result<(), MASError> {
|
|
let accountService: ISAccountService = ISServiceProxy.genericShared().accountService
|
|
accountService.signOut()
|
|
return .success(())
|
|
}
|
|
}
|