Skip to content

Commit 96ce370

Browse files
refactor: Better archived repo check
Co-authored-by: Jovi De Croock <decroockjovi@gmail.com>
1 parent 4a35292 commit 96ce370

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

packages/cli/lib/commands/list.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ module.exports = async function () {
1111
process.stdout.write('\n');
1212
info('Available official templates: \n');
1313

14-
repos.forEach(repo => {
15-
if (repo.name === 'material') return;
16-
const description = repo.description ? ` - ${repo.description}` : '';
17-
process.stdout.write(
18-
` ⭐️ ${bold(magenta(repo.name))}${description} \n`
19-
);
20-
});
14+
repos
15+
.filter(repo => !repo.archived)
16+
.forEach(repo => {
17+
const description = repo.description ? ` - ${repo.description}` : '';
18+
process.stdout.write(
19+
` ⭐️ ${bold(magenta(repo.name))}${description} \n`
20+
);
21+
});
2122

2223
process.stdout.write('\n');
2324
} catch (err) {

0 commit comments

Comments
 (0)