Skip to main content

run_update

Function run_update 

Source
pub fn run_update(
    cwd: &Path,
    flow: Option<String>,
    labels: Vec<String>,
    params: Vec<String>,
    remove_labels: Vec<String>,
    remove_params: Vec<String>,
    global: bool,
    user: bool,
) -> Result<(), Box<dyn Error>>
Expand description

tracevault context update — load existing, apply mutations, save.

Default scope:

  • Linked worktree → reads/writes worktrees/<key>/context.json.
  • Primary checkout → reads/writes the global context.json.

global = true forces the global file from any worktree. user = true reads/writes the resolved user-context file instead (wins over global).