@adinsure-ops/ops-cli
Version:
Operations CLI for working with AdInsure
57 lines (56 loc) • 1.54 kB
TypeScript
import CommandBase from '../command.base.js';
export default class Doctor extends CommandBase<typeof Doctor> {
static description: string;
static usage: string;
static examples: string[];
static flags: {
fix: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
};
private readonly cp;
private nvm;
private yarn;
private node;
private missingPackages;
/**
* Check if Git is installed
* @param {boolean} fix Try to install Git if found missing
* @returns {void}
*/
gitCheck(fix: boolean): Promise<void>;
gitInstall(): Promise<void>;
gitLinuxInstall(): Promise<void>;
gitWindowsInstall(): Promise<void>;
/**
* Check if nvm is installed
* @returns {void}
*/
nvmCheck(): Promise<void>;
/**
* Check which node is installed
* @param {boolean} fix Try to install Node if found missing
* @returns {void}
*/
nodeCheck(fix: boolean): Promise<void>;
/**
* Check which node is installed
* @returns {void}
*/
nodeInstall(): Promise<void>;
/**
* Check which yarn is installed
* @param {boolean} fix Try to install yarn if found missing
* @returns {void}
*/
yarnCheck(fix: boolean): Promise<void>;
/**
* Check which yarn is installed
* @returns {void}
*/
yarnInstall(): Promise<void>;
/**
* Check which VSCode is installed
* @returns {void}
*/
vscodeCheck(): Promise<void>;
run(): Promise<void>;
}