Adds support for custom git installation locations

Also gracefully deals with the times when git isn't in the PATH
This commit is contained in:
Eric Amodio
2016-11-10 18:33:28 -05:00
parent f4410be30a
commit 7ace9cb152
8 changed files with 142 additions and 47 deletions

View File

@@ -3,11 +3,11 @@ declare module "spawn-rx" {
import { Observable } from 'rxjs/Observable';
namespace spawnrx {
function findActualExecutable(exe: string, args: Array<string>): { cmd: string, args: Array<string> };
function spawnDetached(exe: string, params: Array<string>, opts: Object|undefined): Observable<string>;
function spawn(exe: string, params: Array<string>, opts: Object|undefined): Observable<string>;
function spawnDetachedPromise(exe: string, params: Array<string>, opts: Object|undefined): Promise<string>;
function spawnPromise(exe: string, params: Array<string>, opts: Object|undefined): Promise<string>;
function findActualExecutable(exe: string, args?: Array<string> | undefined): { cmd: string, args: Array<string> };
function spawnDetached(exe: string, params?: Array<string> | undefined, opts?: Object | undefined): Observable<string>;
function spawn(exe: string, params?: Array<string> | undefined, opts?: Object | undefined): Observable<string>;
function spawnDetachedPromise(exe: string, params?: Array<string> | undefined, opts?: Object | undefined): Promise<string>;
function spawnPromise(exe: string, params?: Array<string> | undefined, opts?: Object | undefined): Promise<string>;
}
export = spawnrx;
}