Skip to content

Commit 9a87b05

Browse files
committed
Init.
0 parents  commit 9a87b05

File tree

4,916 files changed

+143706
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,916 files changed

+143706
-0
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
push:
3+
branches: main
4+
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-node@v3
11+
with:
12+
node-version: '20'
13+
- run: npm ci
14+
- uses: JS-DevTools/npm-publish@v3
15+
with:
16+
token: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Ignore node_modules directory
2+
node_modules/
3+
4+
# Ignore log files
5+
*.log
6+
7+
# Ignore environment variable files
8+
.env
9+
10+
# Ignore build directories
11+
dist/
12+
build/
13+
14+
# Ignore temporary files
15+
*.tmp
16+
*.swp
17+
18+
# Ignore OS generated files
19+
.DS_Store
20+
Thumbs.db

index.js

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#!/usr/bin/env node
2+
'use strict';
3+
4+
var inquirer = require('inquirer');
5+
var chalk = require('chalk');
6+
7+
var response = chalk.bold.green;
8+
9+
var resume = require('./resume.json');
10+
11+
var resumePrompts = {
12+
type: 'list',
13+
name: 'resumeOptions',
14+
message: 'What do you want to know about me?',
15+
choices: [...Object.keys(resume), 'Exit'],
16+
};
17+
18+
function main() {
19+
console.log(
20+
'Hello,My name is Chaleb(he/him) and welcome to my resume. To view the PDF copy shoot me an email'
21+
);
22+
resumeHandler();
23+
}
24+
25+
function resumeHandler() {
26+
inquirer.prompt(resumePrompts).then((answer) => {
27+
if (answer.resumeOptions == 'Exit') {
28+
return;
29+
}
30+
var option = answer.resumeOptions;
31+
console.log(response('--------------------------------------'));
32+
resume[`${option}`].forEach((info) => {
33+
console.log(response('| => ' + info));
34+
});
35+
console.log(response('--------------------------------------'));
36+
inquirer
37+
.prompt({
38+
type: 'list',
39+
name: 'exitBack',
40+
message: 'Go back or Exit?',
41+
choices: ['Back', 'Exit'],
42+
})
43+
.then((choice) => {
44+
if (choice.exitBack == 'Back') {
45+
console.clear();
46+
resumeHandler();
47+
} else {
48+
return;
49+
}
50+
});
51+
});
52+
}
53+
54+
main();

0 commit comments

Comments
 (0)