#!/usr/bin/env node import { Builtins, Cli } from 'clipanion'; import { ProcessCommand } from './commands/process'; import { ReprocessCommand, ReprocessOneCommand } from './commands/reprocess'; import { StatsCommand } from './commands/stats'; import { DevicesCommand } from './commands/devices'; import { BackfillCommand } from './commands/backfill'; import { DeployCommand, DeployStatusCommand, DeployLogsCommand } from './commands/deploy'; const cli = new Cli({ binaryLabel: 'messenger', binaryName: 'messenger', binaryVersion: '0.1.0', }); cli.register(ProcessCommand); cli.register(ReprocessCommand); cli.register(ReprocessOneCommand); cli.register(StatsCommand); cli.register(DevicesCommand); cli.register(BackfillCommand); cli.register(DeployCommand); cli.register(DeployStatusCommand); cli.register(DeployLogsCommand); cli.register(Builtins.HelpCommand); cli.register(Builtins.VersionCommand); cli.runExit(process.argv.slice(2));