Skip to content

Commit 4510a50

Browse files
committed
📦NEW: options
1 parent 306599c commit 4510a50

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎utils/options.js‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
const io = require("console-read-write");
22
const email = require("./getEmail");
3+
const stars = require("./getStargazer");
4+
const exit = require("./exit");
35
const chalk = require("chalk");
46

57
module.exports = async () => {
68
console.log(
79
chalk.green("\nEnter any option: \n") +
810
chalk.yellow(
9-
"1. Get Email of any GitHub User\n2. Get Stargazers of any GitHub repo\n3. Open an Issue in any GitHub Repo\n\n"
11+
"1. Get Email of any GitHub User\n2. Get Stargazers of any GitHub Repo\n3. Open an Issue in any GitHub Repo\n4. Exit\n\n"
1012
)
1113
);
1214
io.write(chalk.green("> Enter the option number: "));
@@ -16,7 +18,11 @@ module.exports = async () => {
1618
case "1":
1719
email();
1820
break;
19-
21+
case "2":
22+
stars();
23+
break;
24+
case "4":
25+
exit();
2026
default:
2127
break;
2228
}

0 commit comments

Comments
 (0)