MCPcopy Create free account
hub / github.com/facebook/memlab / run

Method run

packages/cli/src/commands/GetVersionCommand.ts:44–58  ·  view source on GitHub ↗
(options: CLIOptions)

Source from the content-addressed store, hash-verified

42
43 // eslint-disable-next-line @typescript-eslint/no-unused-vars
44 async run(options: CLIOptions): Promise<void> {
45 await this.loadDepencyPackageInfo();
46 const packages = [...config.packageInfo].sort((p1, p2) =>
47 p1.name < p2.name ? 1 : -1,
48 );
49 info.topLevel('');
50 for (const pkg of packages) {
51 const version = chalk.grey(`@${pkg.version}`);
52 info.topLevel(` ${pkg.name}${version}`);
53 if (config.verbose && pkg.packageLocation) {
54 info.lowLevel(` ${pkg.packageLocation}`);
55 }
56 }
57 info.topLevel('');
58 }
59}

Callers

nothing calls this directly

Calls 3

topLevelMethod · 0.80
lowLevelMethod · 0.80

Tested by

no test coverage detected