1 // 2 // KBEnvironment.h 3 // Keybase 4 // 5 // Created by Gabriel on 4/22/15. 6 // Copyright (c) 2015 Gabriel Handford. All rights reserved. 7 // 8 9 #import <Foundation/Foundation.h> 10 11 #import "KBEnvConfig.h" 12 #import "KBService.h" 13 #import "KBFSService.h" 14 #import "KBFuseComponent.h" 15 #import "KBCommandLine.h" 16 17 @interface KBEnvironment : NSObject 18 19 @property (readonly) KBHelperTool *helperTool; 20 @property (readonly) KBEnvConfig *config; 21 @property (readonly) KBService *service; 22 @property (readonly) KBFSService *kbfs; 23 @property (readonly) KBFuseComponent *fuse; 24 @property (readonly) KBCommandLine *cli; 25 @property (readonly) NSArray */*of KBInstallable*/installables; 26 27 - (instancetype)initWithConfig:(KBEnvConfig *)config servicePath:(NSString *)servicePath; 28 29 - (NSArray *)componentsForControlPanel; 30 31 - (NSString *)debugInstallables; 32 33 - (id)configValueForKey:(NSString *)keyPath defaultValue:(id)defaultValue error:(NSError **)error; 34 35 @end 36