Skip to content

Commit dd35154

Browse files
committed
display templates in order
1 parent 5a71de5 commit dd35154

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

bin/create-net.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ async function listTemplates(targetOrg) {
146146
const maxNameLength = Math.max(...repos.map(r => r.name.length));
147147
const padding = Math.max(maxNameLength + 2, 25);
148148

149+
repos.sort((a, b) => a.name.localeCompare(b.name));
149150
repos.forEach(repo => {
150151
const name = repo.name.padEnd(padding);
151152
const description = repo.description || 'No description available';

test-ls.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
./bin/create-net.js ls

0 commit comments

Comments
 (0)