Skip to content

Commit

Permalink
Update to commander 9.x types
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Mar 16, 2022
1 parent b7bbb83 commit 3fbe1cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/commands/utils/sharedDangerfileArgs.ts
Original file line number Diff line number Diff line change
@@ -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 */
Expand Down

0 comments on commit 3fbe1cd

Please sign in to comment.