server/packages/cli-parser/cli-builder.type.ts
2024-03-07 19:34:50 -10:00

9 lines
317 B
TypeScript

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;
type: "string" | "number" | "boolean" | "array";
}