Skip to content

Class.Command

DecentM edited this page Jan 16, 2026 · 86 revisions

@decentm/concourse-ts / Command

Class: Command

Defined in: components/command.ts:7

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

Constructors

new Command()

new Command(customise?): Command

Defined in: components/command.ts:25

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

Parameters

customise?

(instance) => void

Returns

Command

Methods

add_args()

add_args(...arg): void

Defined in: components/command.ts:53

Adds arguments to this Command

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

Parameters

arg

...string[]

Returns

void


add_args_before()

add_args_before(...arg): void

Defined in: components/command.ts:64

Adds arguments before the existing arguments to this Command.

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

Parameters

arg

...string[]

Returns

void


serialise()

serialise(): Command

Defined in: components/command.ts:91

Converts this Command to its JSON representation

Returns

Command


set_dir()

set_dir(dir): void

Defined in: components/command.ts:73

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

Parameters

dir

string

Returns

void


set_path()

set_path(path): void

Defined in: components/command.ts:40

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

Parameters

path

string

Returns

void


set_user()

set_user(user): void

Defined in: components/command.ts:82

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

Parameters

user

string

Returns

void


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