-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
59 lines (54 loc) · 1.13 KB
/
index.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
#!/usr/bin/env node
const inquirer = require("inquirer");
const cfonts = require("cfonts");
const opn = require("opn");
const actions = {
Blockchains() {
opn("https://www.blockchains.com/");
},
Truffle() {
opn("https://www.trufflesuite.com/");
},
ConsenSys() {
opn("https://consensys.net/");
},
Crowdbotics() {
opn("https://www.crowdbotics.com/");
},
GitHub() {
opn("https://github.com/cruzmolina");
},
Quit() {
process.exit(1);
},
};
cfonts.say("Cruz Molina", {
font: "chrome",
colors: ["blue", "white", "blue"],
});
console.log(`Hello! My name is Cruz Molina.
I am currently a Full Stack Blockchain Engineer,
focused on Asset & Identity Management for Blockchains.
Previously @TruffleSuite, @ConsenSys & @Crowdbotics.
Thanks for stopping by!
`);
inquirer
.prompt([
{
type: "list",
name: "choice",
message: "Where would you like to go?",
choices: [
"Blockchains",
"Truffle",
"ConsenSys",
"Crowdbotics",
"GitHub",
"Quit",
],
},
])
.then((answers) => {
actions[answers.choice]();
process.exit(1);
});