Use --name flag in example command template

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-17 10:59:07 +01:00
parent edf2b77581
commit 7f05f5759b
@@ -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}!`);
};