MCPcopy
hub / github.com/docker/compose / buildConfigContentPromptMessage

Function buildConfigContentPromptMessage

pkg/compose/publish.go:606–614  ·  view source on GitHub ↗
(configs []string)

Source from the content-addressed store, hash-verified

604}
605
606func buildConfigContentPromptMessage(configs []string) string {
607 var b strings.Builder
608 b.WriteString("you are about to publish literal inline config content within your OCI artifact.\n")
609 for _, name := range configs {
610 fmt.Fprintf(&b, " config %q\n", name)
611 }
612 b.WriteString("Are you ok to publish these config contents?")
613 return b.String()
614}
615
616// loadUnresolvedFile loads a single compose file with interpolation and
617// environment resolution skipped, so callers can inspect raw user-provided

Callers 1

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected