-
Notifications
You must be signed in to change notification settings - Fork 0
/
questions.js
86 lines (81 loc) · 1.79 KB
/
questions.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
const menu = [
{
type: 'list',
name: 'menuChoice',
message: 'What would you like to do?',
choices: [
'View All Departments',
'View All Roles',
'View All Employees',
'Add A Department',
'Add A Role',
'Add An Employee',
'Update An Employee Role',
'Quit'
],
},
];
const addDeptQ = [
{
type: 'input',
name: 'deptName',
message: 'Enter the name of the department',
},
];
const addRoleQ = [
{
type: 'input',
name: 'roleTitle',
message: 'Enter the role title'
},
{
type: 'number',
name: 'roleSalary',
message: 'Enter the salary for the role'
},
{
type: 'list',
name: 'roleDept',
message: 'Choose the department for the role',
choices: [],
},
];
const addEmployeeQ = [
{
type: 'input',
name: 'firstName',
message: 'Enter the employees first name'
},
{
type: 'input',
name: 'lastName',
message: 'Enter the employees last name'
},
{
type: 'list',
name: 'employeeRole',
message: 'Choose the employees role',
choices: [],
},
{
type: 'list',
name: 'employeeManager',
message: 'Choose the employees manager',
choices: [],
},
];
const updateEmployeeQ = [
{
type: 'list',
name: 'employeeToUpdate',
message: 'Which employee would you like to update?',
choices: [],
},
{
type: 'list',
name: 'updatedRole',
message: 'Choose the employees new role',
choices: [],
},
];
module.exports = {menu, addDeptQ, addRoleQ, addEmployeeQ, updateEmployeeQ};