@interopio/desktop-cli
Version:
io.Connect Desktop Seed Repository CLI Tools
53 lines • 2.16 kB
TypeScript
import createDebug from 'debug';
import { ComponentConfig, LicenseInfo } from '../types';
export declare const debug: {
cli: createDebug.Debugger;
setup: createDebug.Debugger;
component: createDebug.Debugger;
license: createDebug.Debugger;
modifications: createDebug.Debugger;
package: createDebug.Debugger;
validate: createDebug.Debugger;
start: createDebug.Debugger;
storage: createDebug.Debugger;
utils: createDebug.Debugger;
};
export declare class Logger {
static info(message: string): void;
static success(message: string): void;
static warning(message: string): void;
static error(message: string): void;
static debug(message: string, namespace?: string): void;
private static shouldShowDebug;
}
export declare class FileUtils {
static exists(filePath: string): Promise<boolean>;
static ensureDir(dirPath: string): Promise<void>;
static copyFile(src: string, dest: string): Promise<void>;
static removeFile(filePath: string): Promise<void>;
static readJson<T>(filePath: string): Promise<T | null>;
static writeJson(filePath: string, data: any): Promise<void>;
static writeFile(filePath: string, content: string): Promise<void>;
}
export declare class ConfigManager {
private static packageJsonPath;
private static licenseJsonPath;
static getPackageJson(): Promise<any>;
static updatePackageJson(updates: any): Promise<void>;
static getComponentConfig(): Promise<ComponentConfig>;
static updateComponentConfig(components: ComponentConfig): Promise<void>;
static getLicenseInfo(): Promise<LicenseInfo | null>;
static hasValidLicense(): Promise<boolean>;
}
export declare class PathUtils {
static getComponentsDir(): string;
static getModificationsDir(): string;
static getDistDir(): string;
static getScriptsDir(): string;
static getComponentDir(componentName: string): string;
static getModificationDir(componentName: string): string;
}
export declare function validateVersion(version: string): boolean;
export * from '../types/component';
export * from '../components';
//# sourceMappingURL=index.d.ts.map