Closed Kotletka89 closed 8 months ago
the lib lacks documentation, I don't know how to work with that
You can try the following:
const formatCommand = defineCommand({
meta: {
name: "format",
description: "Format something",
},
- run() {
+ run(ctx) {
+ console.log(ctx)
console.log("Formatting!");
},
});
You can try the following:
const formatCommand = defineCommand({ meta: { name: "format", description: "Format something", }, - run() { + run(ctx) { + console.log(ctx) console.log("Formatting!"); }, });
thanks a lot! I got it
Environment
node.js 21.0.0 LTS
Reproduction
just try the code
usage/output:
Describe the bug
I expect it to have all properties like meta, args, and stuff of subcommand currently runned
Additional context
No response
Logs
No response