@git.zone/cli
Version:
A comprehensive CLI tool for enhancing and managing local development workflows with gitzone utilities, focusing on project setup, version control, code formatting, and template management.
86 lines (85 loc) • 1.96 kB
TypeScript
export interface IServiceConfig {
PROJECT_NAME: string;
MONGODB_HOST: string;
MONGODB_NAME: string;
MONGODB_PORT: string;
MONGODB_USER: string;
MONGODB_PASS: string;
MONGODB_URL: string;
S3_HOST: string;
S3_PORT: string;
S3_CONSOLE_PORT: string;
S3_ACCESSKEY: string;
S3_SECRETKEY: string;
S3_BUCKET: string;
S3_ENDPOINT: string;
S3_USESSL: boolean;
}
export declare class ServiceConfiguration {
private configPath;
private config;
private docker;
constructor();
/**
* Load or create the configuration
*/
loadOrCreate(): Promise<IServiceConfig>;
/**
* Get the current configuration
*/
getConfig(): IServiceConfig;
/**
* Save the configuration to file
*/
saveConfig(): Promise<void>;
/**
* Ensure .nogit directory exists
*/
private ensureNogitDirectory;
/**
* Check if configuration file exists
*/
private configExists;
/**
* Load configuration from file
*/
private loadConfig;
/**
* Create default configuration
*/
private createDefaultConfig;
/**
* Update missing fields in existing configuration
*/
private updateMissingFields;
/**
* Get MongoDB connection string
*/
getMongoConnectionString(useNetworkIp?: boolean): string;
/**
* Get container names
*/
getContainerNames(): {
mongo: string;
minio: string;
};
/**
* Get data directories
*/
getDataDirectories(): {
mongo: string;
minio: string;
};
/**
* Sync port configuration from existing Docker containers
*/
private syncPortsFromDocker;
/**
* Validate and update ports if they're not available
*/
validateAndUpdatePorts(): Promise<boolean>;
/**
* Force reconfigure all ports with new available ones
*/
reconfigurePorts(): Promise<void>;
}