Function prepareResolvedCommand

  • Prepares a resolved command by ensuring the remaining command string starts with a subcommand name, adding a resolveNext function if the command isn't the last one, and replacing the handler with a pass-through function if the command won't be executed.

    Parameters

    Returns Promise<ResolvedCommand>

    The prepared resolved command.