From 0958e92c5023f1dbd4719fb537239f95e9840a93 Mon Sep 17 00:00:00 2001 From: ysknsid25 Date: Thu, 27 Mar 2025 19:33:48 +0900 Subject: [PATCH] docs: add example setup and cleanup option Signed-off-by: ysknsid25 --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 4d47f0c..f0ec84d 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,12 @@ const main = defineCommand({ description: "Use friendly greeting", }, }, + setup({ args }){ + console.log(`now setup ${args.command}`); + }, + cleanup({ args }){ + console.log(`now cleanup ${args.command}`); + }, run({ args }) { console.log(`${args.friendly ? "Hi" : "Greetings"} ${args.name}!`); },