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

Function extractFirstArgPath

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

Source from the content-addressed store, hash-verified

273}
274
275func extractFirstArgPath(tokens []string) []string {
276 for _, t := range tokens {
277 if t == "--" {
278 continue
279 }
280 if strings.HasPrefix(t, "-") {
281 continue
282 }
283 return []string{t}
284 }
285
286 return nil
287}
288
289func isRedirectOperator(t string) bool {
290 switch t {

Callers 1

ExtractPathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected