From eab72a8e723ab3a4411f6b66d97acb9d7c851bf0 Mon Sep 17 00:00:00 2001 From: Charlie Gerard Date: Mon, 17 Jun 2024 15:44:01 -0700 Subject: [PATCH] fix type param --- lib/commands/audit-log/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/commands/audit-log/index.js b/lib/commands/audit-log/index.js index e87bf8c0..8c314906 100644 --- a/lib/commands/audit-log/index.js +++ b/lib/commands/audit-log/index.js @@ -31,7 +31,7 @@ const auditLogFlags = prepareFlags({ type: 'string', shortFlag: 't', default: '', - description: 'Type of audit log', + description: 'Type of log event', }, perPage: { type: 'number', @@ -107,7 +107,7 @@ function setupCommand (name, description, argv, importMeta) { outputJson, outputMarkdown, orgSlug, - type, + type: type && type.charAt(0).toUpperCase() + type.slice(1), page, per_page: perPage } @@ -152,7 +152,7 @@ async function fetchOrgAuditLog (orgSlug, input, spinner) { { type: 'list', name: 'log', - message: `\n Audit log for: ${orgSlug} \n`, + message: input.type ? `\n Audit log for: ${orgSlug} with type: ${input.type} \n` : `\n Audit log for: ${orgSlug} \n`, choices: data, pageSize: 30 }