(tree: Tree, dryRun?: boolean)
| 158 | } |
| 159 | |
| 160 | async 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 | } |
no test coverage detected