MCPcopy
hub / github.com/runfinch/finch / writeVersionOutput

Function writeVersionOutput

pkg/support/support.go:461–473  ·  view source on GitHub ↗
(writer *zip.Writer, version, prefix string)

Source from the content-addressed store, hash-verified

459}
460
461func writeVersionOutput(writer *zip.Writer, version, prefix string) error {
462 versionFile, err := writer.Create(path.Join(prefix, versionFileName))
463 if err != nil {
464 return err
465 }
466
467 _, err = versionFile.Write([]byte(version))
468 if err != nil {
469 return err
470 }
471
472 return nil
473}

Callers 2

GenerateSupportBundleMethod · 0.85

Calls 1

CreateMethod · 0.65

Tested by 1