issue_tree
    Preparing search index...

    Function renderLoadedGraph

    • Render an already-in-memory Cache to the configured output. This is the shared rendering core: runRender loads a cache from disk and calls it, and the cache-free all/auto one-shot path (scanRenderInMemory) scans straight into a Cache and calls it without any disk involved.

      Output destination (identical to the old runRender behavior):

      • --out set → bytes written there.
      • --out omitted, textual format (json/dot/svg/html) → written to stdout via log.
      • --out omitted, binary format (png/jpeg) → a default filename is generated via defaultBinaryOutPath and the bytes are written there.

      Parameters

      • cache: Cache

        the graph source: a disk-loaded or freshly-scanned cache

      • cmd: RenderCommand

        the render options (format, scope, filters, layout, out, repos)

      • cacheLabel: string

        a human label for the cache source, recorded into the graph metadata and used in the HTML title — the cache path for disk renders, the joined repo list for in-memory renders

      • log: Logger

        the stdout/stderr sink

      Returns Promise<number>

      the process exit code (0 on success, 1 on a render error)

      await renderLoadedGraph(cache, cmd, 'owner/repo', console.log)  // => 0
      
      • runRender
      • scanRenderInMemory