From 260372f685d30ba41c176183f3feedb0ad1e9ff6 Mon Sep 17 00:00:00 2001 From: "A. Martin Castro" Date: Tue, 5 May 2020 10:44:57 -0700 Subject: [PATCH] fix(types): printCommands in interface GluegunPrint is missing the optional param (#615 by @amartincastro) --- src/toolbox/print-types.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/toolbox/print-types.ts b/src/toolbox/print-types.ts index b1936ce1..f10aac76 100644 --- a/src/toolbox/print-types.ts +++ b/src/toolbox/print-types.ts @@ -2,6 +2,7 @@ import { GluegunToolbox } from '../index' import * as CLITable from 'cli-table3' import * as importedColors from 'colors' import ora = require('ora') +import { Toolbox } from '../domain/toolbox' export type GluegunPrintColors = typeof importedColors & { highlight: (t: string) => string @@ -45,7 +46,7 @@ export interface GluegunPrint { /* An `ora`-powered spinner. */ spin(options?: ora.Options | string): ora.Ora /* Print help info for known CLI commands. */ - printCommands(toolbox: GluegunToolbox): void + printCommands(toolbox: Toolbox, commandRoot?: string[]): void /* Prints help info, including version and commands. */ printHelp(toolbox: GluegunToolbox): void }