MCPcopy Create free account
hub / github.com/52funny/pikpakcli / consumesNextValue

Function consumesNextValue

internal/shell/shell.go:958–970  ·  view source on GitHub ↗
(token string)

Source from the content-addressed store, hash-verified

956}
957
958func consumesNextValue(token string) bool {
959 switch token {
960 case "--path", "-p",
961 "--parent-id", "-P",
962 "--output", "-o",
963 "--input", "-i",
964 "--count", "-c",
965 "--rules":
966 return true
967 default:
968 return false
969 }
970}
971
972func hasWildcard(value string) bool {
973 return strings.ContainsAny(value, "*?[")

Callers 2

expandDeleteGlobsFunction · 0.85
rewriteDownloadLikeArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected