@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.
92 lines (91 loc) • 2.01 kB
TypeScript
export declare class ServiceManager {
private config;
private docker;
private enabledServices;
private globalRegistry;
constructor();
/**
* Initialize the service manager
*/
init(): Promise<void>;
/**
* Load service configuration from npmextra.json
*/
private loadServiceConfiguration;
/**
* Save service configuration to npmextra.json
*/
private saveServiceConfiguration;
/**
* Check if a service is enabled
*/
private isServiceEnabled;
/**
* Register this project with the global registry
*/
private registerWithGlobalRegistry;
/**
* Start all enabled services
*/
startAll(): Promise<void>;
/**
* Stop all enabled services
*/
stopAll(): Promise<void>;
/**
* Start MongoDB service
*/
startMongoDB(): Promise<void>;
/**
* Start MinIO service
*/
startMinIO(): Promise<void>;
/**
* Start Elasticsearch service
*/
startElasticsearch(): Promise<void>;
/**
* Stop MongoDB service
*/
stopMongoDB(): Promise<void>;
/**
* Stop MinIO service
*/
stopMinIO(): Promise<void>;
/**
* Stop Elasticsearch service
*/
stopElasticsearch(): Promise<void>;
/**
* Show service status
*/
showStatus(): Promise<void>;
/**
* Show configuration
*/
showConfig(): Promise<void>;
/**
* Show MongoDB Compass connection string
*/
showCompassConnection(): Promise<void>;
/**
* Show logs for a service
*/
showLogs(service: string, lines?: number): Promise<void>;
/**
* Remove containers
*/
removeContainers(): Promise<void>;
/**
* Clean data directories
*/
cleanData(): Promise<void>;
/**
* Configure which services are enabled
*/
configureServices(): Promise<void>;
/**
* Reconfigure services with new ports
*/
reconfigure(): Promise<void>;
}