platform-tooling/run/cli/commands/@core/services.ts

17 lines
450 B
TypeScript
Raw Permalink Normal View History

/**
* Service helpers for CLI commands
*
* Factory functions and utilities for service management.
*/
import { ServiceManager } from '../../../core/services';
import { Logger } from '../../../utils/logger';
/**
* Create a ServiceManager instance with the specified context
*/
export function createServiceManager(context: string = 'Services'): ServiceManager {
const logger = new Logger({ context });
return new ServiceManager(logger);
}