Add as a wizard question, automatically gather post types

This commit is contained in:
Will Boyd
2020-12-26 16:27:16 -05:00
parent 2e9550f14a
commit 108dafd100
4 changed files with 27 additions and 11 deletions
+7 -2
View File
@@ -3,11 +3,10 @@ const commander = require('commander');
const fs = require('fs');
const inquirer = require('inquirer');
const path = require('path');
const process = require('process');
const package = require('../package.json');
// all user options for command line and wizard are declard here
// all user options for command line and wizard are declared here
const options = [
// wizard must always be first
{
@@ -69,6 +68,12 @@ const options = [
type: 'boolean',
description: 'Save images scraped from post body content',
default: true
},
{
name: 'include-other-types',
type: 'boolean',
description: 'Include custom post types and pages',
default: false
}
];