Skip to content

Interface: CliSubcommandEntry

Makaio Framework


Makaio Framework / kernel/cli / 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.

readonly description: string

Defined in: ../../../packages/kernel/src/cli/types.ts:144

One-line description.


readonly handler: (ctx) => Promise<void>

Defined in: ../../../packages/kernel/src/cli/types.ts:148

Handler that receives a CommandContext with the schema’s inferred type.

CommandContext<unknown>

Promise<void>


readonly name: string

Defined in: ../../../packages/kernel/src/cli/types.ts:142

Subcommand name.


readonly schema: 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).