Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1
import
* as bin from
'./bin'
;
2
3
export
const
commandExists = (command: string) => {
4
const
commands = [
'clear'
, ...Object.keys(bin)];
5
return
commands.indexOf(command.split(
' '
)[0].toLowerCase()) !== -1;
6
};
Callers
1
Input
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected