MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / extractCDPaths

Function extractCDPaths

tools/bash/validation.go:148–166  ·  view source on GitHub ↗
(tokens []string)

Source from the content-addressed store, hash-verified

146}
147
148func extractCDPaths(tokens []string) []string {
149 parts := []string{}
150
151 for _, t := range tokens {
152 if t == "--" {
153 continue
154 }
155 if strings.HasPrefix(t, "-") {
156 continue
157 }
158 parts = append(parts, t)
159 }
160
161 if len(parts) == 0 {
162 return nil
163 }
164
165 return []string{strings.Join(parts, " ")}
166}
167
168func extractFindPaths(tokens []string) []string {
169 paths := []string{}

Callers 1

ExtractPathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected