Skip to main content

source_label

Function source_label 

Source
pub fn source_label(spec: &str) -> Option<String>
Expand description

The provenance label a spec WOULD receive, computed WITHOUT cloning or network access. Used by znative load <spec> to check whether a source is already installed (the index keys on this label, since a repo’s basename often differs from its znative.toml plugin name — e.g. zshrs-forgitforgit). Returns None for a bare plugin name (not a source form).