MCPcopy Index your code
hub / github.com/cloudgraphdev/cli / getImportPath

Method getImportPath

src/manager/index.ts:39–55  ·  view source on GitHub ↗
(plugin: string)

Source from the content-addressed store, hash-verified

37 pluginType: PluginType
38
39 private getImportPath(plugin: string): {
40 importPath: string
41 name: string
42 } {
43 let pluginNamespace = '@cloudgraph'
44 let pluginName = plugin
45
46 if (plugin.includes('/')) {
47 [pluginNamespace, pluginName] = plugin.split('/')
48 }
49 return {
50 importPath: `${pluginNamespace}/${
51 PluginModule[this.pluginType]
52 }-${pluginName}`,
53 name: pluginName,
54 }
55 }
56
57 async getPlugin(plugin: string, version?: string): Promise<any> {
58 /**

Callers 2

getPluginMethod · 0.95
removePluginMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected