Skip to content

Commit 76bdad7

Browse files
committed
Cleanup interactive tool names
1 parent 365ef2e commit 76bdad7

13 files changed

+28
-37
lines changed

commands/interactive.js

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const run = async () => {
3434
message: 'Which tool would you like to use?',
3535
pageSize: 30,
3636
choices: [
37-
new inquirer.Separator('--- File Utilities -----------'),
37+
new inquirer.Separator('--- File Utilities ----------------'),
3838
{
3939
name: tasks.zipSplit.choice.name,
4040
value: tasks.zipSplit.choice.value
@@ -51,11 +51,7 @@ const run = async () => {
5151
name: tasks.fetchAssets.choice.name,
5252
value: tasks.fetchAssets.choice.value
5353
},
54-
{
55-
name: tasks.dedupeMembersCsv.choice.name,
56-
value: tasks.dedupeMembersCsv.choice.value
57-
},
58-
new inquirer.Separator('--- API Utilities ------------'),
54+
new inquirer.Separator('--- Post API Utilities ------------'),
5955
{
6056
name: tasks.randomPosts.choice.name,
6157
value: tasks.randomPosts.choice.value
@@ -92,7 +88,20 @@ const run = async () => {
9288
name: tasks.contentStats.choice.name,
9389
value: tasks.contentStats.choice.value
9490
},
95-
new inquirer.Separator('--- Dangerous Utilities ------'),
91+
new inquirer.Separator('--- Members API Utilities ---------'),
92+
{
93+
name: tasks.addMemberCompSubscription.choice.name,
94+
value: tasks.addMemberCompSubscription.choice.value
95+
},
96+
{
97+
name: tasks.addMemberNewsletterSubscription.choice.name,
98+
value: tasks.addMemberNewsletterSubscription.choice.value
99+
},
100+
{
101+
name: tasks.dedupeMembersCsv.choice.name,
102+
value: tasks.dedupeMembersCsv.choice.value
103+
},
104+
new inquirer.Separator('--- Dangerous API Utilities -------'),
96105
{
97106
name: tasks.deletePosts.choice.name,
98107
value: tasks.deletePosts.choice.value
@@ -109,14 +118,6 @@ const run = async () => {
109118
name: tasks.deleteUnusedTags.choice.name,
110119
value: tasks.deleteUnusedTags.choice.value
111120
},
112-
{
113-
name: tasks.addMemberCompSubscription.choice.name,
114-
value: tasks.addMemberCompSubscription.choice.value
115-
},
116-
{
117-
name: tasks.addMemberNewsletterSubscription.choice.name,
118-
value: tasks.addMemberNewsletterSubscription.choice.value
119-
},
120121
{
121122
name: tasks.changeRole.choice.name,
122123
value: tasks.changeRole.choice.value
@@ -125,7 +126,7 @@ const run = async () => {
125126
name: tasks.findReplace.choice.name,
126127
value: tasks.findReplace.choice.value
127128
},
128-
new inquirer.Separator('--- Settings -----------------'),
129+
new inquirer.Separator('--- Settings ----------------------'),
129130
{
130131
name: 'Show saved credentials path',
131132
value: 'show_saved_creds_path'

prompts/add-member-newsletter-subscription.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {getNewsletters} from '../questions/get-newsletters.js';
1010
import {getLabels} from '../questions/get-labels.js';
1111

1212
const choice = {
13-
name: 'Add Member Newsletter Subscription',
13+
name: 'Add member newsletter subscription',
1414
value: 'add-member-newsletter-subscription'
1515
};
1616

prompts/change-author.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {getAPIAuthorsObj, getAPITagsObj} from '../lib/ghost-api-choices.js';
88
import ghostAPICreds from '../lib/ghost-api-creds.js';
99

1010
const choice = {
11-
name: 'Change Author',
11+
name: 'Change author',
1212
value: 'changeAuthor'
1313
};
1414

prompts/change-status.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import ghostAPICreds from '../lib/ghost-api-creds.js';
1212
const dateToday = new Date();
1313

1414
const choice = {
15-
name: 'Change Status',
15+
name: 'Change post status',
1616
value: 'changeStatus'
1717
};
1818

prompts/change-visibility-pages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {getAPIAuthorsObj, getAPITagsObj, getAPIVisibilityObj} from '../lib/ghost
88
import ghostAPICreds from '../lib/ghost-api-creds.js';
99

1010
const choice = {
11-
name: 'Change Visibility for Pages',
11+
name: 'Change visibility for pages',
1212
value: 'changeVisibilityPages'
1313
};
1414

prompts/change-visibility-posts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {getAPIAuthorsObj, getAPITagsObj, getAPIVisibilityObj} from '../lib/ghost
88
import ghostAPICreds from '../lib/ghost-api-creds.js';
99

1010
const choice = {
11-
name: 'Change Visibility for Posts',
11+
name: 'Change visibility for posts',
1212
value: 'changeVisibilityPosts'
1313
};
1414

prompts/content-stats.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import contentStats from '../tasks/content-stats.js';
44
import ghostAPICreds from '../lib/ghost-api-creds.js';
55

66
const choice = {
7-
name: 'Content Stats',
7+
name: 'Content stats',
88
value: 'contentStats'
99
};
1010

prompts/dedupe-members-csv.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {ui} from '@tryghost/pretty-cli';
33
import dedupeMembersCsv from '../tasks/dedupe-members-csv.js';
44

55
const choice = {
6-
name: 'Dedupe Members Csv',
6+
name: 'Dedupe members CSV',
77
value: 'dedupeMembersCsv'
88
};
99

prompts/fetch-assets.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,6 @@ const choice = {
77
value: 'fetchAssets'
88
};
99

10-
// sywac.array('-s --scrape', {
11-
// choices: ['all', 'img', 'web', 'media', 'files', 'none'],
12-
// defaultValue: 'all',
13-
// desc: 'Configure scraping tasks'
14-
// });
15-
// sywac.number('--sizeLimit', {
16-
// defaultValue: false,
17-
// desc: 'Assets larger than this size (defined in MB) will be ignored'
18-
// });
19-
2010
const options = [
2111
{
2212
type: 'input',

prompts/json-clean.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {ui} from '@tryghost/pretty-cli';
33
import jsonClean from '../tasks/json-clean.js';
44

55
const choice = {
6-
name: 'JSON Clean',
6+
name: 'JSON clean',
77
value: 'jsonClean'
88
};
99

prompts/json-split.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {ui} from '@tryghost/pretty-cli';
33
import jsonSplit from '../tasks/json-split.js';
44

55
const choice = {
6-
name: 'JSON Split',
6+
name: 'JSON split',
77
value: 'jsonSplit'
88
};
99

prompts/zip-create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {ui} from '@tryghost/pretty-cli';
33
import zipCreate from '../tasks/zip-create.js';
44

55
const choice = {
6-
name: 'Zip Create',
6+
name: 'Zip create',
77
value: 'zipCreate'
88
};
99

prompts/zip-split.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {ui} from '@tryghost/pretty-cli';
33
import zipSplit from '../tasks/zip-split.js';
44

55
const choice = {
6-
name: 'Zip Split',
6+
name: 'Zip split',
77
value: 'zipSplit'
88
};
99

0 commit comments

Comments
 (0)