runSyncUpstreamsCli
Runs the sync-upstreams command.
Import:
import { runSyncUpstreamsCli } from '@mnaoumov/typescript-dev-toolkit/upstream-sync-cli';Signature:
function runSyncUpstreamsCli(cliArguments: readonly string[], dependencies: SyncDependencies): Promise<number>Parameters:
| Parameter | Type | Description |
|---|---|---|
cliArguments |
readonly string[] | The arguments after the command name. |
dependencies |
SyncDependencies | The outside world. The real one when omitted. |
Returns: Promise<number> — The exit code: 1 when the arguments or upstreams.json are wrong or any entry failed, 0 otherwise.