Files
macdown/MacDown/Code/Utility/MPHomebrewSubprocessController.h
Tzu-ping Chung 6192294908 UI for CLI utility installation
Implemented logic for CLI installation from the GUI app.

A preference pane is added. The pane detects whether the user has
something installed that looks like the MacDown CLI utility by checking
common installtion locations, e.g. Homebrew.

If the util is not detected to be installed, the user can click a
button to install it. For now the only option is to install it to
/usr/local/bin/macdown.
2017-02-18 22:27:15 +08:00

21 lines
448 B
Objective-C

//
// MPHomebrewSubprocessController.h
// MacDown
//
// Created by Tzu-ping Chung on 18/2.
// Copyright © 2017 Tzu-ping Chung . All rights reserved.
//
#import <Foundation/Foundation.h>
@interface MPHomebrewSubprocessController : NSObject
- (instancetype)initWithArguments:(NSArray *)args;
- (void)runWithCompletionHandler:(void(^)(NSString *))handler;
@end
void MPDetectHomebrewPrefixWithCompletionhandler(void(^handler)(NSString *));