From 97621dec03ef2a7235acd329a9ba4a0386cb95b9 Mon Sep 17 00:00:00 2001 From: Bauke Date: Wed, 9 Mar 2022 22:30:38 +0100 Subject: [PATCH] Add a way to filter out projects via the CLI. --- source/driftingnebula.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/driftingnebula.ts b/source/driftingnebula.ts index b2d511d..6548230 100644 --- a/source/driftingnebula.ts +++ b/source/driftingnebula.ts @@ -22,6 +22,9 @@ async function main(): Promise { `, { flags: { + filter: { + type: 'string', + }, includeDefaults: { default: false, type: 'boolean', @@ -43,7 +46,7 @@ async function main(): Promise { d2022_03_07, d2022_03_08, d2022_03_09, - ]; + ].filter((project) => project.name.startsWith(cli.flags.filter ?? '')); for (const { createInputImage,