2017-03-11 00:10:37 +00:00
|
|
|
import * as plugins from './npmci.plugins';
|
|
|
|
/**
|
|
|
|
* wether nvm is available or not
|
|
|
|
*/
|
|
|
|
export declare let nvmAvailable: plugins.q.Deferred<boolean>;
|
2017-03-11 13:07:36 +00:00
|
|
|
export declare let yarnAvailable: plugins.q.Deferred<boolean>;
|
2016-12-10 21:43:14 +00:00
|
|
|
/**
|
|
|
|
* bash() allows using bash with nvm in path
|
2016-12-14 22:10:54 +00:00
|
|
|
* @param commandArg - The command to execute
|
|
|
|
* @param retryArg - The retryArg: 0 to any positive number will retry, -1 will always succeed, -2 will return undefined
|
2016-12-10 21:43:14 +00:00
|
|
|
*/
|
2017-03-11 00:10:37 +00:00
|
|
|
export declare let bash: (commandArg: string, retryArg?: number, bareArg?: boolean) => Promise<string>;
|
2016-12-10 21:43:14 +00:00
|
|
|
/**
|
|
|
|
* bashBare allows usage of bash without sourcing any files like nvm
|
|
|
|
*/
|
2017-03-11 00:10:37 +00:00
|
|
|
export declare let bashBare: (commandArg: string, retryArg?: number) => Promise<string>;
|
2016-12-10 21:43:14 +00:00
|
|
|
/**
|
|
|
|
* bashNoError allows executing stuff without throwing an error
|
|
|
|
*/
|
2017-03-11 00:10:37 +00:00
|
|
|
export declare let bashNoError: (commandArg: string) => Promise<string>;
|