Skip to main content

snapshot

Function snapshot 

Source
pub fn snapshot(
    workspace_root: &Path,
    skill_name: &str,
    skill_subdir: &Path,
    label: &str,
    reference: Option<&str>,
) -> Result<PathBuf, WorkspaceError>
Expand description

Snapshot the skill under skill_subdir into <workspace_root>/<skill_name>/snapshots/<label>/. With reference set, the content is read from that git ref; otherwise from the working tree. Errors if a snapshot with this label already exists.