From 3fbe1cdd6e7ba9ff1e6c2725b7633f86bee8c190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 16 Mar 2022 16:32:04 +0200 Subject: [PATCH] Update to commander 9.x types --- source/commands/utils/sharedDangerfileArgs.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/commands/utils/sharedDangerfileArgs.ts b/source/commands/utils/sharedDangerfileArgs.ts index 1931714ec..e8c3410c0 100644 --- a/source/commands/utils/sharedDangerfileArgs.ts +++ b/source/commands/utils/sharedDangerfileArgs.ts @@ -1,12 +1,12 @@ -import program from "commander" +import { Command } from "commander" import chalk from "chalk" -process.on("unhandledRejection", function(reason: string, _p: any) { +process.on("unhandledRejection", function (reason: string, _p: any) { console.log(chalk.red("Error: "), reason) process.exitCode = 1 }) -export interface SharedCLI extends program.CommanderStatic { +export interface SharedCLI extends Command { /** Should we be posting as much info as possible? */ verbose: boolean /** Output to STDOUT instead of leaving a comment */