MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / isCommandOperator

Function isCommandOperator

source code/utils/bash/shellCompletion.ts:28–35  ·  view source on GitHub ↗

* Check if a parsed token is a command operator (|, ||, &&, ;)

(token: ParseEntry)

Source from the content-addressed store, hash-verified

26 * Check if a parsed token is a command operator (|, ||, &&, ;)
27 */
28function isCommandOperator(token: ParseEntry): boolean {
29 return (
30 typeof token === 'object' &&
31 token !== null &&
32 'op' in token &&
33 (COMMAND_OPERATORS as readonly string[]).includes(token.op as string)
34 )
35}
36
37/**
38 * Determine completion type based solely on prefix characteristics

Callers 2

isNewCommandContextFunction · 0.85
parseInputContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected