45 lines
867 B
TypeScript
45 lines
867 B
TypeScript
import type { CorpConfig } from "../core/config/types.js";
|
|
import type { CorpContext } from "../core/config/manager.js";
|
|
|
|
export interface CliParsedArgs {
|
|
area?: string;
|
|
action?: string;
|
|
args: string[];
|
|
options: Record<string, string | boolean | number>;
|
|
raw: string[];
|
|
}
|
|
|
|
export interface CliRunOptions {
|
|
appRoot?: string;
|
|
entryFile?: string;
|
|
launcher?: {
|
|
command: string;
|
|
args?: string[];
|
|
};
|
|
}
|
|
|
|
export interface CliResult {
|
|
stdout: string;
|
|
stderr: string;
|
|
exitCode: number;
|
|
}
|
|
|
|
export interface OutputOptions {
|
|
allowFull?: boolean;
|
|
outputFile?: string;
|
|
summary?: boolean;
|
|
}
|
|
|
|
export interface CliRuntime {
|
|
corpContext: CorpContext;
|
|
selectedCorp: CorpConfig | null;
|
|
jsonMode: boolean;
|
|
outputOptions?: OutputOptions;
|
|
appRoot?: string;
|
|
entryFile?: string;
|
|
launcher?: {
|
|
command: string;
|
|
args?: string[];
|
|
};
|
|
}
|