Skip to content

Commit a03ce2e

Browse files
committed
fix type param
1 parent 6b7d6ec commit a03ce2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/commands/audit-log/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const auditLogFlags = prepareFlags({
3131
type: 'string',
3232
shortFlag: 't',
3333
default: '',
34-
description: 'Type of audit log',
34+
description: 'Type of log event',
3535
},
3636
perPage: {
3737
type: 'number',
@@ -107,7 +107,7 @@ function setupCommand (name, description, argv, importMeta) {
107107
outputJson,
108108
outputMarkdown,
109109
orgSlug,
110-
type,
110+
type: type && type.charAt(0).toUpperCase() + type.slice(1),
111111
page,
112112
per_page: perPage
113113
}
@@ -152,7 +152,7 @@ async function fetchOrgAuditLog (orgSlug, input, spinner) {
152152
{
153153
type: 'list',
154154
name: 'log',
155-
message: `\n Audit log for: ${orgSlug} \n`,
155+
message: input.type ? `\n Audit log for: ${orgSlug} with type: ${input.type} \n` : `\n Audit log for: ${orgSlug} \n`,
156156
choices: data,
157157
pageSize: 30
158158
}

0 commit comments

Comments
 (0)