Documentation
¶
Index ¶
- func GetCxEcosystemPath() (string, error)
- type AuditInfo
- type Manager
- func (m *Manager) Ensure(repoURL string) error
- func (m *Manager) EnsureVersion(repoURL, version string) (worktreePath string, resolvedCommit string, err error)
- func (m *Manager) GetAuditInfo(commitHash string) (AuditInfo, bool)
- func (m *Manager) List() ([]RepoInfo, error)
- func (m *Manager) LoadManifest() (*Manifest, error)
- func (m *Manager) Sync() error
- func (m *Manager) UpdateAuditResult(commitHash, status, reportPath string) error
- type Manifest
- type RepoInfo
- type WorktreeInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCxEcosystemPath ¶
GetCxEcosystemPath returns the path to the cx ecosystem root. Uses the XDG-compliant paths.DataDir() which respects GROVE_HOME, XDG_DATA_HOME, and falls back to ~/.local/share/grove. This is the parent ecosystem path for all cx-managed bare repos.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) Ensure ¶
Ensure makes sure the bare clone for the given repository exists and is up-to-date. It does not perform any checkouts. Use EnsureVersion for version-specific worktrees.
func (*Manager) EnsureVersion ¶
func (m *Manager) EnsureVersion(repoURL, version string) (worktreePath string, resolvedCommit string, err error)
EnsureVersion ensures a specific version of a repository is checked out in a worktree. It returns the absolute path to the worktree and the resolved commit hash.
func (*Manager) GetAuditInfo ¶
GetAuditInfo returns the audit information for a specific commit hash
func (*Manager) LoadManifest ¶
func (*Manager) UpdateAuditResult ¶
UpdateAuditResult updates the audit status for a specific commit hash