[go: up one dir, main page]

Module project

Module project 

Source
Expand description

Project discovery, git detection, repo binding, and project status helpers.

Structs§

GitInfo
Git context derived from the current working tree.
Project
Holds paths to project resources under .cred/.
ProjectConfig
Project-level metadata stored in .cred/project.toml.
ProjectStatusData
High-level project status snapshot used for CLI reporting.

Functions§

detect_git
Detect git root, origin URL, and normalized repo slug if GitHub-like.
init
init_at
Initialize a project at the given root, creating .cred/, key, vault, and project.toml.
project_status_payload
Build the JSON payload for project status.
resolve_repo_binding
Resolve repo to use for CLI operations, validating detected/bound/provided combinations. Resolve repo to use for CLI operations, validating detected/bound/provided combinations.