UNPKG

@lakutata/cli

Version:
91 lines 2.41 kB
import { Provider } from 'lakutata'; export declare class Information extends Provider { protected readonly name: string; protected readonly version: string; protected readonly description: string; protected readonly license: string; protected readonly currentDirectory: string; protected readonly workingDirectory: string; protected packageDirectory: (options?: any) => Promise<string | undefined>; protected installPath: string; protected projectRoot: string | null; /** * Initializer * @protected */ protected init(): Promise<void>; /** * To find the root path of the project where the working directory is located * @param path * @private */ private findProjectRoot; /** * To locate the root path containing the package.json file * @param path * @private */ private findLocalRoot; /** * Convert string first char to upper case * @param str * @private */ private stringFirstCharUpperCase; /** * Format framework ascii logo * @protected */ protected formatFrameworkAsciiLogo(): string; /** * Format framework description * @protected */ protected formatFrameworkDescription(): string; /** * Format version text * @protected */ protected formatVersionText(): string; /** * Format framework installation path * @protected */ protected formatInstallationPath(): string; /** * Format current running level * @protected */ protected formatRunningLevel(): string; /** * Format license * @protected */ protected formatLicense(): string; /** * Format copyright * @protected */ protected formatCopyright(): string; /** * To retrieve the hierarchy level of the project containing the package under the current command */ getLevel(): 'PROJECT' | 'GLOBAL'; /** * Locate the root path of the project */ getRoot(): string | null; /** * Locate the installation directory */ getInstallPath(): string; /** * Retrieve the framework installation version at the project level */ getProjectLevelInstalledFrameworkVersion(): Promise<string | null>; /** * Print infos */ print(): Promise<void>; } //# sourceMappingURL=Information.d.ts.map