MCPcopy
hub / github.com/Cveinnt/LiveTerm / commandExists

Function commandExists

src/utils/commandExists.ts:3–6  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

1import * as bin from './bin';
2
3export const commandExists = (command: string) => {
4 const commands = ['clear', ...Object.keys(bin)];
5 return commands.indexOf(command.split(' ')[0].toLowerCase()) !== -1;
6};

Callers 1

InputFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected