Skip to content

Class.Command

DecentM edited this page Jan 29, 2025 · 75 revisions

@decentm/concourse-ts / Command

Class: Command

Defined in: components/command.ts:7

https://concourse-ci.org/tasks.html#schema.command

Constructors

new Command()

new Command(customise?): Command

Defined in: components/command.ts:25

https://concourse-ci.org/tasks.html#schema.command

Parameters

customise?

(instance) => void

Returns

Command

Properties

dir?

optional dir: string

Defined in: components/command.ts:56

https://concourse-ci.org/tasks.html#schema.command.dir


path?

optional path: string

Defined in: components/command.ts:38

https://concourse-ci.org/tasks.html#schema.command.path


user?

optional user: string

Defined in: components/command.ts:61

https://concourse-ci.org/tasks.html#schema.command.user

Methods

add_arg()

add_arg(arg): void

Defined in: components/command.ts:49

Adds an argument to this Command

https://concourse-ci.org/tasks.html#schema.command.args

Parameters

arg

string

Returns

void


serialise()

serialise(): Command

Defined in: components/command.ts:68

Converts this Command to its JSON representation

Returns

Command


customise()

static customise(customise): void

Defined in: components/command.ts:16

Customises every Command created after calling this function. If called multiple times, only the last call will have an effect.

Parameters

customise

(instance) => void

Returns

void

Clone this wiki locally