Skip to content

Commit 1610471

Browse files
committed
Updated to have list command for cli to list all available templates.
1 parent f8a5cd7 commit 1610471

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/cli.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,17 @@ program
157157
}
158158
});
159159

160+
program
161+
.command('list')
162+
.description('List all available templates')
163+
.action(() => {
164+
console.log('\n📋 Available templates:\n');
165+
templates.forEach(template => {
166+
console.log(` ${template.name.padEnd(20)} - ${template.description}`);
167+
});
168+
console.log('');
169+
});
170+
160171
program
161172
.command('update')
162173
.description('Run PatternFly codemods on a directory to transform code to the latest PatternFly patterns')

0 commit comments

Comments
 (0)