MCPcopy
hub / github.com/pelletier/go-toml / runAllFilesInPlace

Method runAllFilesInPlace

internal/cli/cli.go:63–71  ·  view source on GitHub ↗
(files []string)

Source from the content-addressed store, hash-verified

61}
62
63func (p *Program) runAllFilesInPlace(files []string) error {
64 for _, path := range files {
65 err := p.runFileInPlace(path)
66 if err != nil {
67 return err
68 }
69 }
70 return nil
71}
72
73func (p *Program) runFileInPlace(path string) error {
74 in, err := os.ReadFile(path) // #nosec G304

Callers 1

runMethod · 0.95

Calls 1

runFileInPlaceMethod · 0.95

Tested by

no test coverage detected