link

gest task link: link a task to another entity.

struct Command

source

pub struct Command

Link a task to another entity.

Field Type Description
artifact bool Target is an artifact instead of a task.
id String The task ID or prefix.
rel RelationshipType The relationship type.
target String The target entity ID or prefix.
target_type EntityType The target entity type.
output json::Flags The output mode: normal, --json, --quiet or --raw.

Implements FromArgMatches, Args, Debug.

Command::call

source

pub async fn call(&self, context: &AppContext) -> Result<(), Error>

Create a relationship row from the task to the resolved target entity within a recorded transaction.

Parameter Type Description
context &AppContext the application context: settings, store and current project
returns Result<(), Error> Ok(()) when the command succeeds, or the error that stopped it.