Add a way to filter out projects via the CLI.

This commit is contained in:
Bauke 2022-03-09 22:30:38 +01:00
parent 114596154b
commit 97621dec03
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 4 additions and 1 deletions

View File

@ -22,6 +22,9 @@ async function main(): Promise<void> {
`, `,
{ {
flags: { flags: {
filter: {
type: 'string',
},
includeDefaults: { includeDefaults: {
default: false, default: false,
type: 'boolean', type: 'boolean',
@ -43,7 +46,7 @@ async function main(): Promise<void> {
d2022_03_07, d2022_03_07,
d2022_03_08, d2022_03_08,
d2022_03_09, d2022_03_09,
]; ].filter((project) => project.name.startsWith(cli.flags.filter ?? ''));
for (const { for (const {
createInputImage, createInputImage,