server/packages/cli-parser/cli-builder.type.ts

11 lines
358 B
TypeScript
Raw Normal View History

export interface CliParameter {
name: string;
// If not positioned, the argument will need to be called with --name value instead of just value
positioned?: boolean;
// Whether the argument needs a value (requires positioned to be false)
needsValue?: boolean;
2024-03-08 07:46:59 +01:00
optional?: true;
type: "string" | "number" | "boolean" | "array";
2024-03-08 07:46:59 +01:00
description?: string;
}