-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresume.js
132 lines (127 loc) · 3.59 KB
/
resume.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
import enquirer from 'enquirer';
import chalk from 'chalk';
import figlet from 'figlet';
import clear from 'clear';
const getDefaultInitialValues = () => {
return {
"1": 4, // React
"2": 4, // Redux
"3": 4, // Saga
"4": 3, // Next
"5": 3, // TypeScript
};
};
export const resume = () => {
const skills = [
{
type: "survey",
name: "experience",
message: "Skills:",
margin: [0, 0, 2, 1],
choices: [
{
name: "1",
message: "React",
scale: [
{ name: "1", message: "No Experience" },
{ name: "2", message: "Beginner" },
{ name: "3", message: "Intermediate" },
{ name: "4", message: "Advanced" },
{ name: "5", message: "Expert" }
],
},
{
name: "2",
message: "Redux",
scale: [
{ name: "1", message: "No Experience" },
{ name: "2", message: "Beginner" },
{ name: "3", message: "Intermediate" },
{ name: "4", message: "Advanced" },
{ name: "5", message: "Expert" }
],
},
{
name: "3",
message: "Saga",
scale: [
{ name: "1", message: "No Experience" },
{ name: "2", message: "Beginner" },
{ name: "3", message: "Intermediate" },
{ name: "4", message: "Advanced" },
{ name: "5", message: "Expert" }
],
},
{
name: "4",
message: "Next",
scale: [
{ name: "1", message: "No Experience" },
{ name: "2", message: "Beginner" },
{ name: "3", message: "Intermediate" },
{ name: "4", message: "Advanced" },
{ name: "5", message: "Expert" }
],
},
{
name: "5",
message: "TypeScript",
scale: [
{ name: "1", message: "No Experience" },
{ name: "2", message: "Beginner" },
{ name: "3", message: "Intermediate" },
{ name: "4", message: "Advanced" },
{ name: "5", message: "Expert" }
],
},
{
name: "6",
message: "Node",
scale: [
{ name: "1", message: "No Experience" },
{ name: "2", message: "Beginner" },
{ name: "3", message: "Intermediate" },
{ name: "4", message: "Advanced" },
{ name: "5", message: "Expert" }
],
},
{
name: "7",
message: "Mongo",
scale: [
{ name: "1", message: "No Experience" },
{ name: "2", message: "Beginner" },
{ name: "3", message: "Intermediate" },
{ name: "4", message: "Advanced" },
{ name: "5", message: "Expert" }
],
},
{
name: "8",
message: "Express",
scale: [
{ name: "1", message: "No Experience" },
{ name: "2", message: "Beginner" },
{ name: "3", message: "Intermediate" },
{ name: "4", message: "Advanced" },
{ name: "5", message: "Expert" }
],
},
],
},
];
// Set the initial scale values manually
const initialValues = getDefaultInitialValues();
skills[0].choices.forEach(choice => {
choice.initial = initialValues[choice.name];
});
enquirer.prompt(skills).then(ans => {
clear();
console.log(
chalk.yellowBright(
figlet.textSync("Skills", { horizontalLayout: "full" })
)
);
console.log(ans, "ans");
});
};