MCPcopy Create free account
hub / github.com/github/gh-aw / generateSafeOutputsConfig

Method generateSafeOutputsConfig

pkg/cli/interactive.go:707–720  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

705}
706
707func (b *InteractiveWorkflowBuilder) generateSafeOutputsConfig() string {
708 if len(b.SafeOutputs) == 0 {
709 return ""
710 }
711
712 var config strings.Builder
713 config.WriteString("safe-outputs:\n")
714
715 for _, output := range b.SafeOutputs {
716 fmt.Fprintf(&config, " %s:\n", output)
717 }
718
719 return config.String()
720}
721
722func (b *InteractiveWorkflowBuilder) describeTrigger() string {
723 switch b.Trigger {

Callers 1

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected