Skip to main content

binding_from_config

Function binding_from_config 

Source
pub fn binding_from_config(config: &TracevaultConfig) -> Option<RepoBinding>
Expand description

A RepoBinding from a pinned .tracevault/config.toml (bound mode), if it has both org_slug and repo_id. Pure — caller supplies the already-loaded config. Carries through the remote_id/codebase_name init persisted (best-effort, display-only) so bound-mode status can print the codebase without an extra network round-trip; git_url stays None here — bound mode has no live origin URL to hand back (that’s the older git_url fallback’s job, covering bindings that predate codebase_name).