@synet/net
Version:
Network abstraction layer for Synet. visit https://syntehtism.ai for more information.
13 lines (12 loc) • 603 B
TypeScript
import type { CommandExecutor, CommandExecutionResult } from "./command-executor.interface";
import { Result } from "@synet/patterns";
import type { Logger } from "@synet/logger";
/**
* Node.js implementation of CommandExecutor
*/
export declare class NodeCommandExecutor implements CommandExecutor {
private logger?;
constructor(logger?: Logger | undefined);
execute(command: string, args?: string[], sudo?: boolean | true): Promise<Result<CommandExecutionResult>>;
executeAsSuperuser(command: string, args: string[], sudo: boolean | true): Promise<Result<CommandExecutionResult>>;
}