17 lines
450 B
TypeScript
17 lines
450 B
TypeScript
|
|
/**
|
||
|
|
* 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);
|
||
|
|
}
|