Files
hose-use/src/cli/types.ts
T
gitea c1dc9f1616
🚀 Release / 🚀 Build & Publish Multi-Platform Binaries (push) Has been cancelled
feat: release v0.5.0 with embedded HTTP server and resident daemon service
2026-09-03 15:19:12 +08:00

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[];
};
}