Skip to content

craft-hub / CommandInputDefinition

Interface: CommandInputDefinition ​

Defined in: packages/craft-hub/src/types.ts:440

Project-owned form input that is resolved into structured command arguments.

Properties ​

argumentStyle? ​

optional argumentStyle?: "equals" | "separate" | "positional"

Defined in: packages/craft-hub/src/types.ts:455

Format this value as --flag=value, --flag value, or a positional argv entry.


default? ​

optional default?: string

Defined in: packages/craft-hub/src/types.ts:446


description? ​

optional description?: string

Defined in: packages/craft-hub/src/types.ts:444


flag? ​

optional flag?: string

Defined in: packages/craft-hub/src/types.ts:451


id ​

id: string

Defined in: packages/craft-hub/src/types.ts:441


label? ​

optional label?: string

Defined in: packages/craft-hub/src/types.ts:443


omitArgument? ​

optional omitArgument?: boolean

Defined in: packages/craft-hub/src/types.ts:453

Keep this input in the reviewed execution plan without adding a CLI argument.


options? ​

optional options?: CommandInputOption[]

Defined in: packages/craft-hub/src/types.ts:445


pattern? ​

optional pattern?: string

Defined in: packages/craft-hub/src/types.ts:450


private? ​

optional private?: boolean

Defined in: packages/craft-hub/src/types.ts:457

Treat the current value as a private identifier and omit it from persisted run history.


redactInHistory? ​

optional redactInHistory?: boolean

Defined in: packages/craft-hub/src/types.ts:459

Redact the resolved argument in persisted run history.


required? ​

optional required?: boolean

Defined in: packages/craft-hub/src/types.ts:447


requiredWhen? ​

optional requiredWhen?: CommandInputConditions

Defined in: packages/craft-hub/src/types.ts:448


type ​

type: "boolean" | "text" | "select"

Defined in: packages/craft-hub/src/types.ts:442


visibleWhen? ​

optional visibleWhen?: CommandInputConditions

Defined in: packages/craft-hub/src/types.ts:449

Released under the MIT License.