Skip to main content

run

Function run 

Source
pub fn run(path: &Path) -> Result<(), Box<dyn Error>>
Expand description

pv validate <path> — validate whatever artifact path holds.

Dispatches on what the file IS, not on the assumption that everything under contracts/ is a Contract. Five files in the corpus are not: two pv binding registries and three publish manifests, all of which failed here with missing field `metadata` while the directory walkers that lint them already knew to treat them differently. See provable_contracts::schema::artifact.