Skip to content

Commit

Permalink
refactor: Better archived repo check
Browse files Browse the repository at this point in the history
Co-authored-by: Jovi De Croock <decroockjovi@gmail.com>
  • Loading branch information
rschristian and JoviDeCroock committed Jun 8, 2022
1 parent 4a35292 commit 96ce370
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions packages/cli/lib/commands/list.js
Expand Up @@ -11,13 +11,14 @@ module.exports = async function () {
process.stdout.write('\n');
info('Available official templates: \n');

repos.forEach(repo => {
if (repo.name === 'material') return;
const description = repo.description ? ` - ${repo.description}` : '';
process.stdout.write(
` ⭐️ ${bold(magenta(repo.name))}${description} \n`
);
});
repos
.filter(repo => !repo.archived)
.forEach(repo => {
const description = repo.description ? ` - ${repo.description}` : '';
process.stdout.write(
` ⭐️ ${bold(magenta(repo.name))}${description} \n`
);
});

process.stdout.write('\n');
} catch (err) {
Expand Down

0 comments on commit 96ce370

Please sign in to comment.