Interface: NamedParam
Defined in: docs-entry.ts:200
A named parameter (flag) for a task. Named parameters are passed as --name value or -n value on the CLI.
Example
task("greet")
.params({
name: { type: "string", description: "Who to greet" },
loud: { type: "boolean", default: false }
})
// CLI: ice run greet --name Alice --loudExtends
Properties
aliases?
optionalaliases:string[]
Defined in: docs-entry.ts:202
Alternative short names (e.g., -n for --name).
default?
optionaldefault:unknown
Defined in: docs-entry.ts:177
Default value if not provided.
Inherited from
description?
optionaldescription:string
Defined in: docs-entry.ts:175
Human-readable description for help text.
Inherited from
isFlag
isFlag:
true
Defined in: docs-entry.ts:204
Always true for named parameters.
isOptional
isOptional:
boolean
Defined in: docs-entry.ts:179
Whether this parameter is optional.
Inherited from
isVariadic
isVariadic:
boolean
Defined in: docs-entry.ts:181
Whether this parameter accepts multiple values.
Inherited from
name
name:
string
Defined in: docs-entry.ts:173
The parameter name (used in CLI as --name or positionally).
Inherited from
type
type:
object|BuiltInTaskType
Defined in: docs-entry.ts:171
The type or schema for validation and parsing.