mirror of
https://github.com/mas-cli/mas
synced 2024-11-25 13:00:23 +00:00
List updates in a simpler form
This commit is contained in:
parent
934a597415
commit
b3c64f7514
3 changed files with 6 additions and 6 deletions
|
@ -14,7 +14,10 @@ struct ListUpdatesCommand: CommandType {
|
|||
switch mode {
|
||||
case .Arguments:
|
||||
let updateController = CKUpdateController.sharedUpdateController()
|
||||
print(updateController.availableUpdates())
|
||||
let updates = updateController.availableUpdates() as! [CKUpdate]
|
||||
for update in updates {
|
||||
println("\(update.itemIdentifier) \(update.title) \(update.actionParams)")
|
||||
}
|
||||
default:
|
||||
break
|
||||
}
|
||||
|
|
|
@ -4,10 +4,6 @@
|
|||
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
|
||||
//
|
||||
|
||||
#import "NSObject.h"
|
||||
|
||||
#import "NSSecureCoding.h"
|
||||
|
||||
@class NSDate, NSDictionary, NSMutableDictionary, NSNumber, NSString, SSPurchase;
|
||||
|
||||
@interface CKUpdate : NSObject <NSSecureCoding>
|
||||
|
@ -19,7 +15,7 @@
|
|||
+ (BOOL)supportsSecureCoding;
|
||||
@property(nonatomic) long long softwareUpdateState; // @synthesize softwareUpdateState=_softwareUpdateState;
|
||||
@property(readonly) NSDictionary *dictionary; // @synthesize dictionary=_dictionary;
|
||||
- (void).cxx_destruct;
|
||||
//- (void).cxx_destruct;
|
||||
@property(readonly, nonatomic) NSString *autoUpdateAbortReason;
|
||||
@property(nonatomic) BOOL hasBeenSeenByUser;
|
||||
@property(readonly, nonatomic) BOOL didFailToAutoInstall;
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#import "CKDownloadQueueClient.h"
|
||||
#import "CKPurchaseController.h"
|
||||
#import "CKSoftwareMap.h"
|
||||
#import "CKUpdate.h"
|
||||
#import "CKUpdateController.h"
|
||||
|
||||
#import "SSDownload.h"
|
||||
|
|
Loading…
Reference in a new issue