MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isCommandOperator

Function isCommandOperator

src/utils/bash/shellCompletion.ts:26–33  ·  view source on GitHub ↗

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

(token: ParseEntry)

Source from the content-addressed store, hash-verified

24 * Check if a parsed token is a command operator (|, ||, &&, ;)
25 */
26function isCommandOperator(token: ParseEntry): boolean {
27 return (
28 typeof token === 'object' &&
29 token !== null &&
30 'op' in token &&
31 (COMMAND_OPERATORS as readonly string[]).includes(token.op as string)
32 )
33}
34
35/**
36 * 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