ArgDefinition interface
Home > streplts > ArgDefinition
ArgDefinition interface
Section titled “ArgDefinition interface”Structural definition specifying configuration and validation metadata for a command parameter.
Signature:
export interface ArgDefinitionRemarks
Section titled “Remarks”Used by the completion and validation pipelines to assert bounds on runtime inputs, provide interactive visual arguments hints, and produce suggestion list arrays.
Properties
Section titled “Properties”|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
string[] | ((typed: string, previousArgs: string[], context: any, globals: any) => string[]) | null |
(Optional) An static string array or a dynamic evaluation closure generating eligible autocomplete variations. | ||
|
string |
The unique identifier labeling the target positional command argument. | ||
|
boolean |
Flags whether execution fails immediately if this positional parameter is not filled. |