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

Function printReadme

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

Source from the content-addressed store, hash-verified

60}
61
62func printReadme(cfg *Config, w io.Writer, markdown bool) error {
63 if cfg.Description() == "" {
64 return nil
65 }
66 _, err := fmt.Fprintf(
67 w,
68 "%s%s NOTES:\n%s\n\n",
69 lo.Ternary(markdown, "### ", ""),
70 cfg.Name,
71 cfg.Description(),
72 )
73 return errors.WithStack(err)
74}
75
76func printServices(cfg *Config, pkg *devpkg.Package, w io.Writer, markdown bool) error {
77 _, contentPath := cfg.ProcessComposeYaml()

Callers 1

ReadmeFunction · 0.85

Calls 1

DescriptionMethod · 0.80

Tested by

no test coverage detected