Build the Commander preSubcommand hook using the provided context.
--exclude-all
cmd
--command
See PreSubHookContext.
An async hook suitable for Commander’s preSubcommand.
preSubcommand
`program.hook('preSubcommand', makePreSubcommandHook(ctx));` Copy
`program.hook('preSubcommand', makePreSubcommandHook(ctx));`
Build the Commander preSubcommand hook using the provided context.
--exclude-all
overrides.cmd
subcommand or execute--command
.