File tree Expand file tree Collapse file tree 1 file changed +0
-48
lines changed Expand file tree Collapse file tree 1 file changed +0
-48
lines changed Original file line number Diff line number Diff line change @@ -234,51 +234,6 @@ const getFullTaskList = (options) => {
234
234
let theData = _ . clone ( user . originalData ) ;
235
235
236
236
const promptOptions = [
237
- {
238
- type : 'input' ,
239
- name : 'userID' ,
240
- message : 'The new ID:' ,
241
- filter : function ( val ) {
242
- return val . trim ( ) ;
243
- } ,
244
- validate : ( input ) => {
245
- if ( input . length ) {
246
- return true ;
247
- } else {
248
- return 'Please provide an ID' ;
249
- }
250
- }
251
- } ,
252
- {
253
- type : 'input' ,
254
- name : 'userName' ,
255
- message : 'The new name:' ,
256
- filter : function ( val ) {
257
- return val . trim ( ) ;
258
- } ,
259
- validate : ( input ) => {
260
- if ( input . length ) {
261
- return true ;
262
- } else {
263
- return 'Please provide a name' ;
264
- }
265
- }
266
- } ,
267
- {
268
- type : 'input' ,
269
- name : 'userSlug' ,
270
- message : 'The new slug:' ,
271
- filter : function ( val ) {
272
- return val . trim ( ) ;
273
- } ,
274
- validate : ( input ) => {
275
- if ( input . length ) {
276
- return true ;
277
- } else {
278
- return 'Please provide a slug' ;
279
- }
280
- }
281
- } ,
282
237
{
283
238
type : 'input' ,
284
239
name : 'userEmail' ,
@@ -298,9 +253,6 @@ const getFullTaskList = (options) => {
298
253
299
254
await inquirer . prompt ( promptOptions ) . then ( async ( answers ) => {
300
255
// Prompt for updates to these values
301
- theData . id = answers . userID ; // Something new
302
- theData . name = answers . userName ; // Something new
303
- theData . slug = answers . userSlug ; // Something new
304
256
theData . email = answers . userEmail ; // Something new
305
257
306
258
// Add the new data to the user object
You can’t perform that action at this time.
0 commit comments