(tokens: string[])
| 181 | } |
| 182 | |
| 183 | function findPathTokens(tokens: string[]) { |
| 184 | const commandName = tokens[0]?.toLowerCase() ?? ""; |
| 185 | const positional = collectNonFlagOperands(tokens, commandName); |
| 186 | const pathLike = positional.filter(isPathLike); |
| 187 | return pathLike.length > 0 ? pathLike : positional; |
| 188 | } |
| 189 | |
| 190 | function normalizeCommandStatus(status?: string) { |
| 191 | const normalized = (status ?? "").toLowerCase(); |
no test coverage detected