MCPcopy Index your code
hub / github.com/jetify-com/devbox / printCreateFiles

Function printCreateFiles

internal/plugin/info.go:106–125  ·  view source on GitHub ↗
(cfg *Config, w io.Writer, markdown bool)

Source from the content-addressed store, hash-verified

104}
105
106func printCreateFiles(cfg *Config, w io.Writer, markdown bool) error {
107 if len(cfg.CreateFiles) == 0 {
108 return nil
109 }
110
111 shims := ""
112 for name, src := range cfg.CreateFiles {
113 if src != "" {
114 shims += fmt.Sprintf("* %s\n", name)
115 }
116 }
117
118 _, err := fmt.Fprintf(
119 w,
120 "%sThis plugin creates the following helper files:\n%s\n",
121 lo.Ternary(markdown, "### ", ""),
122 shims,
123 )
124 return errors.WithStack(err)
125}
126
127func printEnv(cfg *Config, w io.Writer, markdown bool) error {
128 if len(cfg.Env) == 0 {

Callers 1

ReadmeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected