MCPcopy Index your code
hub / github.com/google-gemini/gemini-cli / getLineCountCommand

Function getLineCountCommand

integration-tests/run_shell_command.test.ts:18–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16const { shell } = getShellConfiguration();
17
18function getLineCountCommand(): { command: string; tool: string } {
19 switch (shell) {
20 case 'powershell':
21 return { command: `Measure-Object -Line`, tool: 'Measure-Object' };
22 case 'cmd':
23 return { command: `find /c /v`, tool: 'find' };
24 case 'bash':
25 default:
26 return { command: `wc -l`, tool: 'wc' };
27 }
28}
29
30function getInvalidCommand(): string {
31 switch (shell) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected