Files
temp/examples/resource-types/git-checkout.yaml
T

32 lines
709 B
YAML

schema_version: "1.0"
name: git-checkout
description: "A local git repository checkout"
resource_kind: physical
sandbox_strategy: git_worktree
user_addable: true
built_in: true
cli_args:
- name: path
type: path
required: true
description: "Path to the local git repository"
- name: branch
type: string
required: false
description: "Branch to checkout (default: current)"
parent_types: []
child_types: ["git", "fs-directory"]
auto_discovery:
enabled: true
rules:
- type: git
pattern: ".git"
- type: fs-directory
pattern: "**/"
capabilities:
read: true
write: true
sandbox: true
checkpoint: true
handler: "cleveragents.resource.handlers.git_checkout"