mirror of
https://github.com/mas-cli/mas
synced 2024-12-23 10:23:15 +00:00
23 lines
525 B
Swift
23 lines
525 B
Swift
//
|
|
// main.swift
|
|
// mas-cli
|
|
//
|
|
// Created by Andrew Naylor on 11/07/2015.
|
|
// Copyright © 2015 Andrew Naylor. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
|
|
let registry = CommandRegistry<MASError>()
|
|
let helpCommand = HelpCommand(registry: registry)
|
|
registry.register(AccountCommand())
|
|
registry.register(InstallCommand())
|
|
registry.register(ListInstalledCommand())
|
|
registry.register(ListUpdatesCommand())
|
|
registry.register(helpCommand)
|
|
|
|
registry.main(defaultVerb: helpCommand.verb) { error in
|
|
exit(Int32(error.code))
|
|
}
|
|
|