MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / findCommunityScript

Function findCommunityScript

internal/cli/community_scripts.go:559–566  ·  view source on GitHub ↗
(nameOrSlug string)

Source from the content-addressed store, hash-verified

557}
558
559func findCommunityScript(nameOrSlug string) (core.Script, error) {
560 scripts, err := core.FetchScripts()
561 if err != nil {
562 return core.Script{}, fmt.Errorf("failed to fetch community scripts: %w", err)
563 }
564
565 return core.FindScript(scripts, nameOrSlug)
566}
567
568func validateCommunityScriptInstall(script core.Script) error {
569 switch {

Callers 3

runCommunityScriptsShowFunction · 0.85
buildCommunityScriptPlanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected