Files
oneuptime/CLI/Types/CLITypes.ts
Nawaz Dhandala 5ac5ffede5 feat(cli): initialize CLI package with TypeScript configuration and dependencies
- Added package.json for OneUptime CLI with scripts for development and build processes.
- Included TypeScript configuration (tsconfig.json) with strict type checking and module settings.
2026-02-15 10:36:30 +00:00

35 lines
577 B
TypeScript

export interface CLIContext {
name: string;
apiUrl: string;
apiKey: string;
}
export interface CLIConfig {
currentContext: string;
contexts: Record<string, CLIContext>;
defaults: {
output: string;
limit: number;
};
}
export enum OutputFormat {
JSON = "json",
Table = "table",
Wide = "wide",
}
export interface ResourceInfo {
name: string;
singularName: string;
pluralName: string;
apiPath: string;
tableName: string;
modelType: "database" | "analytics";
}
export interface ResolvedCredentials {
apiUrl: string;
apiKey: string;
}