Interface: CliSubcommandEntry
Makaio Framework / kernel/cli / CliSubcommandEntry
Interface: CliSubcommandEntry
Section titled “Interface: CliSubcommandEntry”Defined in: ../../../packages/kernel/src/cli/types.ts:140
Type-erased subcommand definition for collections.
When collecting subcommands into arrays or registries, the per-schema generic is erased. The handler contract is preserved at runtime via the closure created by defineCliSubcommand.
Properties
Section titled “Properties”description
Section titled “description”
readonlydescription:string
Defined in: ../../../packages/kernel/src/cli/types.ts:144
One-line description.
handler
Section titled “handler”
readonlyhandler: (ctx) =>Promise<void>
Defined in: ../../../packages/kernel/src/cli/types.ts:148
Handler that receives a CommandContext with the schema’s inferred type.
Parameters
Section titled “Parameters”CommandContext<unknown>
Returns
Section titled “Returns”Promise<void>
readonlyname:string
Defined in: ../../../packages/kernel/src/cli/types.ts:142
Subcommand name.
schema
Section titled “schema”
readonlyschema:ZodObject<Readonly<{[k:string]:$ZodType<unknown,unknown,$ZodTypeInternals<unknown,unknown>>; }>>
Defined in: ../../../packages/kernel/src/cli/types.ts:146
Zod object schema (type-erased for collection storage).