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

Function buildScriptPath

internal/plugins/communityscripts/scripts.go:215–230  ·  view source on GitHub ↗
(scriptType, slug string)

Source from the content-addressed store, hash-verified

213}
214
215func buildScriptPath(scriptType, slug string) string {
216 switch scriptType {
217 case "lxc":
218 return fmt.Sprintf("ct/%s.sh", slug)
219 case "vm":
220 return fmt.Sprintf("vm/%s.sh", slug)
221 case "addon":
222 return fmt.Sprintf("tools/addon/%s.sh", slug)
223 case "pve":
224 return fmt.Sprintf("tools/pve/%s.sh", slug)
225 case "turnkey":
226 return "turnkey/turnkey.sh"
227 default:
228 return ""
229 }
230}
231
232func normalizeScriptType(scriptType string) string {
233 switch scriptType {

Callers 1

mapPocketBaseRecordFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected