Skip to content

Commit

Permalink
Cleanup interactive tool names
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulAdamDavis committed Mar 8, 2024
1 parent 365ef2e commit 76bdad7
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 37 deletions.
33 changes: 17 additions & 16 deletions commands/interactive.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const run = async () => {
message: 'Which tool would you like to use?',
pageSize: 30,
choices: [
new inquirer.Separator('--- File Utilities -----------'),
new inquirer.Separator('--- File Utilities ----------------'),
{
name: tasks.zipSplit.choice.name,
value: tasks.zipSplit.choice.value
Expand All @@ -51,11 +51,7 @@ const run = async () => {
name: tasks.fetchAssets.choice.name,
value: tasks.fetchAssets.choice.value
},
{
name: tasks.dedupeMembersCsv.choice.name,
value: tasks.dedupeMembersCsv.choice.value
},
new inquirer.Separator('--- API Utilities ------------'),
new inquirer.Separator('--- Post API Utilities ------------'),
{
name: tasks.randomPosts.choice.name,
value: tasks.randomPosts.choice.value
Expand Down Expand Up @@ -92,7 +88,20 @@ const run = async () => {
name: tasks.contentStats.choice.name,
value: tasks.contentStats.choice.value
},
new inquirer.Separator('--- Dangerous Utilities ------'),
new inquirer.Separator('--- Members API Utilities ---------'),
{
name: tasks.addMemberCompSubscription.choice.name,
value: tasks.addMemberCompSubscription.choice.value
},
{
name: tasks.addMemberNewsletterSubscription.choice.name,
value: tasks.addMemberNewsletterSubscription.choice.value
},
{
name: tasks.dedupeMembersCsv.choice.name,
value: tasks.dedupeMembersCsv.choice.value
},
new inquirer.Separator('--- Dangerous API Utilities -------'),
{
name: tasks.deletePosts.choice.name,
value: tasks.deletePosts.choice.value
Expand All @@ -109,14 +118,6 @@ const run = async () => {
name: tasks.deleteUnusedTags.choice.name,
value: tasks.deleteUnusedTags.choice.value
},
{
name: tasks.addMemberCompSubscription.choice.name,
value: tasks.addMemberCompSubscription.choice.value
},
{
name: tasks.addMemberNewsletterSubscription.choice.name,
value: tasks.addMemberNewsletterSubscription.choice.value
},
{
name: tasks.changeRole.choice.name,
value: tasks.changeRole.choice.value
Expand All @@ -125,7 +126,7 @@ const run = async () => {
name: tasks.findReplace.choice.name,
value: tasks.findReplace.choice.value
},
new inquirer.Separator('--- Settings -----------------'),
new inquirer.Separator('--- Settings ----------------------'),
{
name: 'Show saved credentials path',
value: 'show_saved_creds_path'
Expand Down
2 changes: 1 addition & 1 deletion prompts/add-member-newsletter-subscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {getNewsletters} from '../questions/get-newsletters.js';
import {getLabels} from '../questions/get-labels.js';

const choice = {
name: 'Add Member Newsletter Subscription',
name: 'Add member newsletter subscription',
value: 'add-member-newsletter-subscription'
};

Expand Down
2 changes: 1 addition & 1 deletion prompts/change-author.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {getAPIAuthorsObj, getAPITagsObj} from '../lib/ghost-api-choices.js';
import ghostAPICreds from '../lib/ghost-api-creds.js';

const choice = {
name: 'Change Author',
name: 'Change author',
value: 'changeAuthor'
};

Expand Down
2 changes: 1 addition & 1 deletion prompts/change-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import ghostAPICreds from '../lib/ghost-api-creds.js';
const dateToday = new Date();

const choice = {
name: 'Change Status',
name: 'Change post status',
value: 'changeStatus'
};

Expand Down
2 changes: 1 addition & 1 deletion prompts/change-visibility-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {getAPIAuthorsObj, getAPITagsObj, getAPIVisibilityObj} from '../lib/ghost
import ghostAPICreds from '../lib/ghost-api-creds.js';

const choice = {
name: 'Change Visibility for Pages',
name: 'Change visibility for pages',
value: 'changeVisibilityPages'
};

Expand Down
2 changes: 1 addition & 1 deletion prompts/change-visibility-posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {getAPIAuthorsObj, getAPITagsObj, getAPIVisibilityObj} from '../lib/ghost
import ghostAPICreds from '../lib/ghost-api-creds.js';

const choice = {
name: 'Change Visibility for Posts',
name: 'Change visibility for posts',
value: 'changeVisibilityPosts'
};

Expand Down
2 changes: 1 addition & 1 deletion prompts/content-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import contentStats from '../tasks/content-stats.js';
import ghostAPICreds from '../lib/ghost-api-creds.js';

const choice = {
name: 'Content Stats',
name: 'Content stats',
value: 'contentStats'
};

Expand Down
2 changes: 1 addition & 1 deletion prompts/dedupe-members-csv.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {ui} from '@tryghost/pretty-cli';
import dedupeMembersCsv from '../tasks/dedupe-members-csv.js';

const choice = {
name: 'Dedupe Members Csv',
name: 'Dedupe members CSV',
value: 'dedupeMembersCsv'
};

Expand Down
10 changes: 0 additions & 10 deletions prompts/fetch-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@ const choice = {
value: 'fetchAssets'
};

// sywac.array('-s --scrape', {
// choices: ['all', 'img', 'web', 'media', 'files', 'none'],
// defaultValue: 'all',
// desc: 'Configure scraping tasks'
// });
// sywac.number('--sizeLimit', {
// defaultValue: false,
// desc: 'Assets larger than this size (defined in MB) will be ignored'
// });

const options = [
{
type: 'input',
Expand Down
2 changes: 1 addition & 1 deletion prompts/json-clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {ui} from '@tryghost/pretty-cli';
import jsonClean from '../tasks/json-clean.js';

const choice = {
name: 'JSON Clean',
name: 'JSON clean',
value: 'jsonClean'
};

Expand Down
2 changes: 1 addition & 1 deletion prompts/json-split.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {ui} from '@tryghost/pretty-cli';
import jsonSplit from '../tasks/json-split.js';

const choice = {
name: 'JSON Split',
name: 'JSON split',
value: 'jsonSplit'
};

Expand Down
2 changes: 1 addition & 1 deletion prompts/zip-create.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {ui} from '@tryghost/pretty-cli';
import zipCreate from '../tasks/zip-create.js';

const choice = {
name: 'Zip Create',
name: 'Zip create',
value: 'zipCreate'
};

Expand Down
2 changes: 1 addition & 1 deletion prompts/zip-split.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {ui} from '@tryghost/pretty-cli';
import zipSplit from '../tasks/zip-split.js';

const choice = {
name: 'Zip Split',
name: 'Zip split',
value: 'zipSplit'
};

Expand Down

0 comments on commit 76bdad7

Please sign in to comment.