From 8310011df367e94cfa7da7563005eb7c0f43b87f Mon Sep 17 00:00:00 2001 From: Aria Diamond <59593260+ariadiamond@users.noreply.github.com> Date: Mon, 15 Jul 2024 10:21:33 -0400 Subject: [PATCH] bind this for passed function (#34) --- src/api-command.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api-command.ts b/src/api-command.ts index 0593bf6..1daa4a6 100644 --- a/src/api-command.ts +++ b/src/api-command.ts @@ -227,7 +227,7 @@ export default abstract class ApiCommand extends BaseCommand { } cli.table(unwrappedRecords, cols, { - printLine: this.log, + printLine: this.log.bind(this), ...tableOpts, }); break;