Method

IdePipelineattach_command

Declaration

guint
ide_pipeline_attach_command (
  IdePipeline* self,
  IdePipelinePhase phase,
  gint priority,
  IdeRunCommand* run_command
)

Description

This creates a new stage that will spawn a process using run_command and log the output of stdin/stdout.

It is a programmer error to modify run_command after passing it to this function.

Parameters

phase

Type: IdePipelinePhase

An IdePipelinePhase.

priority

Type: gint

An optional priority for sorting within the phase.

run_command

Type: IdeRunCommand

An IdeRunCommand.

The data is owned by the caller of the method.

Return value

Type: guint

A stage_id that may be passed to ide_pipeline_remove().