updateArgv(): string[]
The command that upgrades this channel: deno install, npm install -g, deno add, git pull.
Argv rather than a string because this is the definition, not the display — argv is what can be spawned, and a string would have to be parsed back by something that guesses at quoting it never needs. updateCommand renders it for a human. Deriving the printed line from the runnable one is what stops a refusal from advertising a command the upgrade does not actually run.
registry only reaches the deno-project case, where the same dependency may be pinned through
either registry and the wrong deno add would add a second copy of it.
import * as Channel from './channel.ts'; Channel.updateArgv({ kind: 'npm-global', prefix: '/usr/lib' }, '1.0.0'); // ['npm', 'install', '-g', 'qunitx-cli@1.0.0']