56 lines
1.3 KiB
TypeScript
56 lines
1.3 KiB
TypeScript
export type DatabaseType = "mysql" | "mssql";
|
|
export type ProjectType = "requested-project" | "internal-service" | "shared-service";
|
|
export type AgentRegistration = "shared" | "local";
|
|
|
|
export interface CliOptions {
|
|
projectName: string;
|
|
agentProjectId: string;
|
|
projectType: ProjectType;
|
|
targetDir: string;
|
|
basePackage: string;
|
|
applicationClass: string;
|
|
description: string;
|
|
port: number;
|
|
database: DatabaseType;
|
|
mybatis: boolean;
|
|
repoUrl: string;
|
|
appRoot: string;
|
|
serviceName: string;
|
|
branch: string;
|
|
agentLabel: string;
|
|
mavenCredentialId: string;
|
|
yes: boolean;
|
|
build: boolean;
|
|
jenkins: boolean;
|
|
harnessRoot?: string;
|
|
agentRegistration: AgentRegistration;
|
|
skipAgentCompose: boolean;
|
|
force: boolean;
|
|
}
|
|
|
|
export interface ParsedArguments {
|
|
projectName?: string;
|
|
agentProjectId?: string;
|
|
projectType?: ProjectType;
|
|
targetDir?: string;
|
|
basePackage?: string;
|
|
description?: string;
|
|
port?: number;
|
|
database?: DatabaseType;
|
|
mybatis: boolean;
|
|
repoUrl?: string;
|
|
appRoot?: string;
|
|
serviceName?: string;
|
|
branch?: string;
|
|
agentLabel?: string;
|
|
mavenCredentialId?: string;
|
|
yes: boolean;
|
|
build: boolean;
|
|
jenkins: boolean;
|
|
harnessRoot?: string;
|
|
agentRegistration: AgentRegistration;
|
|
skipAgentCompose: boolean;
|
|
force: boolean;
|
|
help: boolean;
|
|
}
|