unlink

gest task unlink: remove a relationship between a task and another entity.

struct Command

source

pub struct Command

Remove a relationship between a task and another entity.

Field Type Description
artifact bool Target is an artifact instead of a task.
id String The task ID or prefix.
rel Option<RelationshipType> Filter to relationships of this type. Required when multiple relationships exist between the endpoints.
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>

Delete the matching relationship between the task and target 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.