MCPcopy Create free account
hub / github.com/toeverything/AFFiNE / execute

Method execute

tools/cli/src/clean.ts:15–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 all = Option.Boolean('--all,-a', false);
14
15 async execute() {
16 this.logger.info('Cleaning Workspace...');
17 if (this.all || this.cleanNodeModules) {
18 this.doCleanNodeModules();
19 }
20
21 if (this.all || this.cleanDist) {
22 this.doCleanDist();
23 }
24
25 if (this.all || this.cleanRustTarget) {
26 this.doCleanRust();
27 }
28 }
29
30 doCleanNodeModules() {
31 this.logger.info('Cleaning node_modules...');

Callers

nothing calls this directly

Calls 4

doCleanNodeModulesMethod · 0.95
doCleanDistMethod · 0.95
doCleanRustMethod · 0.95
infoMethod · 0.45

Tested by

no test coverage detected