penguins-eggs
Version:
A remaster system tool, compatible with Arch, Debian, Devuan, Ubuntu and others
51 lines (50 loc) • 1.15 kB
TypeScript
/**
* ./src/classes/tailor.ts
* penguins-eggs v.10.0.0 / ecmascript 2020
* author: Piero Proietti
* email: piero.proietti@gmail.com
* license: MIT
*/
import { IMateria } from '../interfaces/index.js';
/**
*
*/
export default class Tailor {
materials: IMateria;
private category;
private costume;
private echo;
private toNull;
private verbose;
private wardrobe;
private log;
/**
* @param wardrobe
* @param costume
*/
constructor(costume: string, category?: string);
/**
*
*/
prepare(verbose?: boolean, no_accessories?: boolean, no_firmwares?: boolean): Promise<void>;
/**
*
* @param packages
* @param verbose
* @param section
* @returns
*/
packagesExists(wanted: string[]): Promise<string[]>;
/**
* - check if every package if installed
* - if find any packages to install, install it
*/
packagesInstall(packages: string[], comment?: string, cmd?: string): Promise<void>;
/**
*
* @param cmd
* @param echo
* @returns
*/
tryCheckSuccess(cmd: string, echo: {}): Promise<boolean>;
}