From 7f05f5759b703ed3243c7464b669751b186b3ff1 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 17 Mar 2026 10:59:07 +0100 Subject: [PATCH] Use --name flag in example command template Signed-off-by: Patrik Oldsberg Made-with: Cursor --- .../cli/templates/cli-module/src/commands/example.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/cli/templates/cli-module/src/commands/example.ts b/packages/cli/templates/cli-module/src/commands/example.ts index 03a8f88fc2..66722307b0 100644 --- a/packages/cli/templates/cli-module/src/commands/example.ts +++ b/packages/cli/templates/cli-module/src/commands/example.ts @@ -6,13 +6,17 @@ export default async ({ args, info }: CliCommandContext) => { { help: info, booleanFlagNegation: true, - flags: {}, + flags: { + name: { + type: String, + description: 'Your name', + }, + }, }, undefined, args, ); - void flags; - - console.log('Hello from example command!'); + const name = flags.name ?? 'World'; + console.log(`Hello, ${name}!`); };