Files
seal-use/src/cli/types.ts
T

37 lines
657 B
TypeScript

import type { ServiceConfig } from "./service.js";
export type ParsedArgs = {
command: string[];
options: Record<string, string | boolean>;
json?: unknown;
};
export type OutputOptions = {
allowFull?: boolean;
outputFile?: string;
};
export type CliResult = {
stdout: string;
stderr: string;
isError: boolean;
exitCode: number;
};
export type CliRunOptions = {
appRoot?: string;
entryFile?: string;
launcher?: ServiceConfig["launcher"];
};
export type CliRuntime = {
appRoot: string;
entryFile: string;
launcher?: ServiceConfig["launcher"];
};
export type CommandContext = {
runtime: CliRuntime;
args: ParsedArgs;
};