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

Function formatGuestOutputs

internal/cli/community_scripts.go:533–544  ·  view source on GitHub ↗
(guests []guestOutput)

Source from the content-addressed store, hash-verified

531}
532
533func formatGuestOutputs(guests []guestOutput) string {
534 if len(guests) == 0 {
535 return ""
536 }
537
538 parts := make([]string, 0, len(guests))
539 for _, guest := range guests {
540 parts = append(parts, fmt.Sprintf("%d/%s/%s", guest.ID, guest.Name, guest.Type))
541 }
542
543 return strings.Join(parts, ", ")
544}
545
546func ensureCommunityScriptsEnabled(session *cliSession) error {
547 if session == nil || session.cfg == nil {

Callers 1

printInstallResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected