MCPcopy Create free account
hub / github.com/code-pushup/cli / finalize

Function finalize

packages/create-cli/src/lib/setup/wizard.ts:160–190  ·  view source on GitHub ↗
(tree: Tree, dryRun?: boolean)

Source from the content-addressed store, hash-verified

158}
159
160async function finalize(tree: Tree, dryRun?: boolean): Promise<void> {
161 logger.newline();
162
163 tree.listChanges().forEach(change => {
164 logger.info(`${change.type} ${change.path}`);
165 });
166
167 if (dryRun) {
168 logger.newline();
169 logger.info('Dry run — no files written.');
170 return;
171 }
172
173 await tree.flush();
174
175 logger.newline();
176 logger.info('Setup complete.');
177 logger.newline();
178 logger.info(
179 formatAsciiTable(
180 {
181 title: 'Next steps:',
182 rows: [
183 ['npx code-pushup', 'Collect your first report'],
184 ['https://github.com/code-pushup/cli#readme', 'Documentation'],
185 ],
186 },
187 { borderless: true },
188 ),
189 );
190}

Callers 1

runSetupWizardFunction · 0.85

Calls 4

formatAsciiTableFunction · 0.90
newlineMethod · 0.80
infoMethod · 0.80
flushMethod · 0.45

Tested by

no test coverage detected