Skip to content

Commit 20d1967

Browse files
committed
Added verbose to list.
1 parent 09b8314 commit 20d1967

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 Labaj Development
3+
Copyright (c) 2025 Red Hat
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cli.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,17 @@ program
160160
program
161161
.command('list')
162162
.description('List all available templates')
163-
.action(() => {
163+
.option('--verbose', 'List all available templates with verbose information')
164+
.action((options) => {
164165
console.log('\n📋 Available templates:\n');
165166
templates.forEach(template => {
166-
console.log(` ${template.name.padEnd(20)} - ${template.description}`);
167+
console.log(` ${template.name.padEnd(20)} - ${template.description}`)
168+
if (options.verbose) {
169+
console.log(` Repo URL: ${template.repo}`);
170+
if (template.options && Array.isArray(template.options)) {
171+
console.log(` Checkout Options: ${template.options.join(', ')}`);
172+
}
173+
}
167174
});
168175
console.log('');
169176
});

src/templates.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,15 @@ const templates = [
1111
options: ["--single-branch", "--branch", "compass_theme"]
1212
},
1313
{
14-
name: "patternfly-nextjs-seed",
14+
name: "nextjs-starter",
1515
description: "A starter template for Patternfly nextjs project",
1616
repo: "git@github.com:patternfly/patternfly-nextjs-seed.git"
17+
},
18+
{
19+
name: "ai_enabled_starter",
20+
description: "A starter template for Patternfly ai enabled project",
21+
repo: "https://github.com/patternfly/patternfly-react-seed.git",
22+
options: ["--single-branch", "--branch", "ai_enabled"]
1723
}
1824
]
1925

0 commit comments

Comments
 (0)