@nomiclabs/buidler > TaskDefinition

Interface: TaskDefinition

Hierarchy

ConfigurableTaskDefinition

↳ TaskDefinition

Implemented by

Index

Properties

Methods


Properties

action

● action: ActionType<TaskArguments>

Defined in types.ts:210


<Optional> description

● description: undefined | string

Defined in types.ts:209


isInternal

● isInternal: boolean

Defined in types.ts:211


name

● name: string

Defined in types.ts:208


paramDefinitions

● paramDefinitions: ParamDefinitionsMap

Defined in types.ts:213


positionalParamDefinitions

● positionalParamDefinitions: Array<ParamDefinition<any>>

Defined in types.ts:215


Methods

addFlag

addFlag(name: string, description?: undefined | string): this

Inherited from ConfigurableTaskDefinition.addFlag

Defined in types.ts:161

Parameters:

Name Type
name string
Optional description undefined | string

Returns: this


addOptionalParam

addOptionalParam<T>(name: string, description?: undefined | string, defaultValue?: T, type?: types.ArgumentType<T>): this

Inherited from ConfigurableTaskDefinition.addOptionalParam

Defined in types.ts:124

Type parameters:

T

Parameters:

Name Type
name string
Optional description undefined | string
Optional defaultValue T
Optional type types.ArgumentType<T>

Returns: this


addOptionalPositionalParam

addOptionalPositionalParam<T>(name: string, description?: undefined | string, defaultValue?: T, type?: types.ArgumentType<T>): this

Inherited from ConfigurableTaskDefinition.addOptionalPositionalParam

Defined in types.ts:139

Type parameters:

T

Parameters:

Name Type
name string
Optional description undefined | string
Optional defaultValue T
Optional type types.ArgumentType<T>

Returns: this


addOptionalVariadicPositionalParam

addOptionalVariadicPositionalParam<T>(name: string, description?: undefined | string, defaultValue?: T[], type?: types.ArgumentType<T>): this

Inherited from ConfigurableTaskDefinition.addOptionalVariadicPositionalParam

Defined in types.ts:154

Type parameters:

T

Parameters:

Name Type
name string
Optional description undefined | string
Optional defaultValue T[]
Optional type types.ArgumentType<T>

Returns: this


addParam

addParam<T>(name: string, description?: undefined | string, defaultValue?: T, type?: types.ArgumentType<T>, isOptional?: undefined | false | true): this

Inherited from ConfigurableTaskDefinition.addParam

Defined in types.ts:116

Type parameters:

T

Parameters:

Name Type
name string
Optional description undefined | string
Optional defaultValue T
Optional type types.ArgumentType<T>
Optional isOptional undefined | false | true

Returns: this


addPositionalParam

addPositionalParam<T>(name: string, description?: undefined | string, defaultValue?: T, type?: types.ArgumentType<T>, isOptional?: undefined | false | true): this

Inherited from ConfigurableTaskDefinition.addPositionalParam

Defined in types.ts:131

Type parameters:

T

Parameters:

Name Type
name string
Optional description undefined | string
Optional defaultValue T
Optional type types.ArgumentType<T>
Optional isOptional undefined | false | true

Returns: this


addVariadicPositionalParam

addVariadicPositionalParam<T>(name: string, description?: undefined | string, defaultValue?: T[], type?: types.ArgumentType<T>, isOptional?: undefined | false | true): this

Inherited from ConfigurableTaskDefinition.addVariadicPositionalParam

Defined in types.ts:146

Type parameters:

T

Parameters:

Name Type
name string
Optional description undefined | string
Optional defaultValue T[]
Optional type types.ArgumentType<T>
Optional isOptional undefined | false | true

Returns: this


setAction

setAction<ArgsT>(action: ActionType<ArgsT>): this

Inherited from ConfigurableTaskDefinition.setAction

Defined in types.ts:114

Type parameters:

ArgsT

Parameters:

Name Type
action ActionType<ArgsT>

Returns: this


setDescription

setDescription(description: string): this

Inherited from ConfigurableTaskDefinition.setDescription

Defined in types.ts:112

Parameters:

Name Type
description string

Returns: this