Skip to main content

run_set

Function run_set 

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

tracevault context set — build a fresh Context from flags, save it. Omitted dimensions are empty. Clears anything not explicitly provided.

Default scope:

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

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