mirror of
https://github.com/MacDownApp/macdown.git
synced 2026-05-17 12:40:37 +00:00
6192294908
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.
21 lines
448 B
Objective-C
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 *));
|