MCPcopy
hub / github.com/jetify-com/devbox / Write

Method Write

internal/nix/writer.go:23–34  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

21}
22
23func (fw *PackageInstallWriter) Write(p []byte) (n int, err error) {
24 lines := strings.Split(string(p), "\n")
25 for _, line := range lines {
26 if line != "" && !fw.ignore(line) {
27 _, err = io.WriteString(fw.Writer, "\t"+line+"\n")
28 if err != nil {
29 return n, err
30 }
31 }
32 }
33 return len(p), nil
34}
35
36func (*PackageInstallWriter) ignore(line string) bool {
37 for filter, shouldLog := range packageInstallIgnore {

Callers 10

CommandTTYWithBufferFunction · 0.80
ExtractFunction · 0.80
BytesFunction · 0.80
cacheCredentialsCmdFunction · 0.80
runIntegrateVSCodeCmdFunction · 0.80
CreateDevcontainerMethod · 0.80
FormatMethod · 0.80
FormatMethod · 0.80
InitFunction · 0.80

Calls 1

ignoreMethod · 0.95

Tested by

no test coverage detected