feat(cli): Enhance CLI with new process management commands

This commit is contained in:
2025-03-04 11:44:55 +00:00
parent 0232741b89
commit 2dc766fa6e
7 changed files with 383 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
import * as plugins from './plugins.js';
import { ProcessWrapper } from './classes.processwrapper.js';
import { ProcessWrapper, type IProcessLog } from './classes.processwrapper.js';
export interface IMonitorConfig {
name?: string; // Optional name to identify the instance
@@ -161,7 +161,7 @@ export class ProcessMonitor {
/**
* Get the current logs from the process
*/
public getLogs(limit?: number): Array<{ timestamp: Date, type: string, message: string }> {
public getLogs(limit?: number): IProcessLog[] {
if (!this.processWrapper) {
return [];
}