pub fn preview_task_edit(
queue: &QueueFile,
done: Option<&QueueFile>,
task_id: &str,
key: TaskEditKey,
input: &str,
now_rfc3339: &str,
id_prefix: &str,
id_width: usize,
max_dependency_depth: u8,
) -> Result<TaskEditPreview>Expand description
Preview task edit changes without applying them.
Clones the queue, applies the edit to the clone, validates the result, and returns a preview describing what would change.
§Arguments
queue- The queue file containing the task to editdone- Optional done file for validationtask_id- ID of the task to editkey- Field to editinput- New value for the fieldnow_rfc3339- Current timestamp for updated_atid_prefix- Task ID prefix for validationid_width- Task ID width for validationmax_dependency_depth- Maximum dependency depth for validation
§Returns
A TaskEditPreview describing the changes that would be made.