MCPcopy
hub / github.com/smapiot/piral / isPluginDirectory

Function isPluginDirectory

src/tooling/piral-cli/src/plugin.ts:65–72  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

63}
64
65async function isPluginDirectory(dir: string) {
66 try {
67 return await isDirectory(dir);
68 } catch (err) {
69 log('generalDebug_0003', `Could not load the plugin at "${dir}": ${err}`);
70 return false;
71 }
72}
73
74function isPlugin(name: string) {
75 const prefix = 'piral-cli-';

Callers 1

fillPluginsFunction · 0.85

Calls 2

logFunction · 0.90
isDirectoryFunction · 0.70

Tested by

no test coverage detected