UNPKG

@testmonitor/testmonitor-cli

Version:

The TestMonitor CLI lets you interact with the TestMonitor platform directly from your terminal or CI pipelines.

24 lines (16 loc) 635 B
import 'dotenv/config'; import { Command } from 'commander'; import { appVersion } from './lib/app-version.js'; import junitGroup from './commands/junit/index.js'; const program = new Command(); program .name('testmonitor-cli') .version(await appVersion(), '-v, --version', 'Display the current CLI version.') .description('CLI tool for interacting with the TestMonitor API.') .helpCommand(false) .helpOption('-h, --help', 'Display help for command.'); program.on('option:verbose', function () { process.env.VERBOSE = this.opts().verbose; }); program.addCommand(junitGroup); program.parse(process.argv);