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

Function normalizeScriptType

internal/plugins/communityscripts/scripts.go:232–243  ·  view source on GitHub ↗
(scriptType string)

Source from the content-addressed store, hash-verified

230}
231
232func normalizeScriptType(scriptType string) string {
233 switch scriptType {
234 case "lxc":
235 return "ct"
236 case "vm":
237 return "vm"
238 case "addon", "pve":
239 return "tools"
240 default:
241 return scriptType
242 }
243}
244
245func mapPocketBaseRecord(record pocketBaseScriptRecord) Script {
246 sourceType := record.Expand.Type.Type

Callers 1

mapPocketBaseRecordFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected