Skip to content

Commit 39af0c7

Browse files
committed
Allow skipping author filter in add-author tool
1 parent e7f7911 commit 39af0c7

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

prompts/add-author.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,15 @@ const options = [
1919
name: 'author',
2020
message: 'Current Author:',
2121
pageSize: 20,
22-
choices: function () {
23-
return getAPIAuthorsObj();
22+
choices: async function () {
23+
const allAuthors = await getAPIAuthorsObj();
24+
return [
25+
{
26+
name: '(None, this this)',
27+
value: false
28+
},
29+
... allAuthors
30+
];
2431
}
2532
},
2633
{

0 commit comments

Comments
 (0)