issue_tree
    Preparing search index...

    Function runUpdateCommand

    • Execute the update subcommand: incrementally re-scan the repos already in a cache. The targets are read from cache.repos (no --repo), and the scan persists back to the same cache file, so unchanged repos are skipped and only issues modified since each repo's last scan are re-fetched (see runScan).

      Parameters

      • cmd: UpdateCommand

        the parsed update command

      • log: Logger

        the stdout/stderr sink

      • deps: RunScanCommandDeps = {}

        injectable boundaries (runScan); omit to use the real engine

      Returns Promise<number>

      the process exit code (0 on success or a clean rate-limit stop; 1 when the cache is missing, corrupt, or holds no scanned repos)

      await runUpdateCommand(cmd, console.log)  // => 0
      

      runScanCommand