MCPcopy Index your code
hub / github.com/Doorman11991/smallcode / _checkRtk

Function _checkRtk

bin/executor.js:31–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29let _rtkAvailable = null; // null = unchecked, true/false = cached result
30
31function _checkRtk() {
32 if (_rtkAvailable !== null) return _rtkAvailable;
33 try {
34 const { execSync } = require('child_process');
35 execSync('rtk --version', { stdio: 'ignore', timeout: 2000 });
36 _rtkAvailable = true;
37 } catch {
38 _rtkAvailable = false;
39 }
40 return _rtkAvailable;
41}
42
43// Commands RTK supports — maps regex to rtk subcommand.
44// These produce significantly smaller output than raw commands.

Callers 1

_rtkRewriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected