fynjs API
    Preparing search index...

    Type Alias CommandExecFunc

    CommandExecFunc: (cmd: CommandNode, parsed?: ParseResult) => void

    The execution function you provide for a command.

    IMPORTANT: Exec handlers should not modify the command structure (e.g., argsList, subCmdNodes) during execution. The command structure is considered immutable after parsing is complete.

    Type Declaration

      • (cmd: CommandNode, parsed?: ParseResult): void
      • Parameters

        • cmd: CommandNode

          The CommandNode instance for this command

        • Optionalparsed: ParseResult

          The parsed result containing remaining args after -- (optional)

          The command chain (sequence from root to this command) is accessible via cmd.cmdChain

        Returns void