mirror of
https://github.com/mas-cli/mas
synced 2024-11-21 19:23:01 +00:00
Remove unnecessary explicit inits.
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
This commit is contained in:
parent
d413d8cfa1
commit
6793a91e03
6 changed files with 0 additions and 12 deletions
|
@ -14,8 +14,6 @@ public struct AccountCommand: CommandProtocol {
|
|||
public let verb = "account"
|
||||
public let function = "Prints the primary account Apple ID"
|
||||
|
||||
public init() {}
|
||||
|
||||
/// Runs the command.
|
||||
public func run(_: Options) -> Result<Void, MASError> {
|
||||
if #available(macOS 12, *) {
|
||||
|
|
|
@ -15,8 +15,6 @@ public struct ResetCommand: CommandProtocol {
|
|||
public let verb = "reset"
|
||||
public let function = "Resets the Mac App Store"
|
||||
|
||||
public init() {}
|
||||
|
||||
/// Runs the command.
|
||||
public func run(_ options: Options) -> Result<Void, MASError> {
|
||||
// The "Reset Application" command in the Mac App Store debug menu performs
|
||||
|
|
|
@ -15,8 +15,6 @@ public struct SignInCommand: CommandProtocol {
|
|||
public let verb = "signin"
|
||||
public let function = "Sign in to the Mac App Store"
|
||||
|
||||
public init() {}
|
||||
|
||||
/// Runs the command.
|
||||
public func run(_ options: Options) -> Result<Void, MASError> {
|
||||
do {
|
||||
|
|
|
@ -14,8 +14,6 @@ public struct SignOutCommand: CommandProtocol {
|
|||
public let verb = "signout"
|
||||
public let function = "Sign out of the Mac App Store"
|
||||
|
||||
public init() {}
|
||||
|
||||
/// Runs the command.
|
||||
public func run(_: Options) -> Result<Void, MASError> {
|
||||
if #available(macOS 10.13, *) {
|
||||
|
|
|
@ -14,8 +14,6 @@ public struct VersionCommand: CommandProtocol {
|
|||
public let verb = "version"
|
||||
public let function = "Print version number"
|
||||
|
||||
public init() {}
|
||||
|
||||
/// Runs the command.
|
||||
public func run(_: Options) -> Result<Void, MASError> {
|
||||
print(Package.version)
|
||||
|
|
|
@ -21,8 +21,6 @@ class OpenSystemCommandMock: ExternalCommand {
|
|||
var stdoutPipe = Pipe()
|
||||
var stderrPipe = Pipe()
|
||||
|
||||
init() {}
|
||||
|
||||
func run(arguments: String...) throws {
|
||||
self.arguments = arguments
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue