MCPcopy Create free account
hub / github.com/cloudflare/artifact-fs / isShellSafe

Function isShellSafe

internal/gitstore/gitstore.go:1188–1199  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

1186 if errors.Is(err, io.EOF) {
1187 if record != "" {
1188 return io.ErrUnexpectedEOF
1189 }
1190 return nil
1191 }
1192 if err != nil {
1193 return err
1194 }
1195 }
1196}
1197
1198func parseTreeRecord(repoID model.RepoID, line string) (model.BaseNode, string, bool) {
1199 parts := strings.SplitN(line, "\t", 2)
1200 if len(parts) != 2 {
1201 return model.BaseNode{}, "", false
1202 }

Callers 1

shellQuoteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected