function run
run(
argv?: string[],
): Promise<number>

Runs qunitx upgrade.

import * as Upgrade from './index.ts';

// Defined, not invoked: reaches GitHub Releases and may replace the running binary.
async function upgradeCommand(): Promise<number> {
  return await Upgrade.run(); // 0 up to date · 1 stale · 2 could not check
}

Parameters

optional
argv: string[]
optional
deps: UpgradeDeps

Return Type

Promise<number>

the process exit code.

Usage

import { run } from "lib/commands/upgrade/index.ts";