Skip to content

Commit 306599c

Browse files
committed
📦 NEW: options.js
1 parent ad462f9 commit 306599c

2 files changed

Lines changed: 23 additions & 39 deletions

File tree

‎utils/cli.js‎

Lines changed: 0 additions & 39 deletions
This file was deleted.

‎utils/options.js‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
const io = require("console-read-write");
2+
const email = require("./getEmail");
3+
const chalk = require("chalk");
4+
5+
module.exports = async () => {
6+
console.log(
7+
chalk.green("\nEnter any option: \n") +
8+
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"
10+
)
11+
);
12+
io.write(chalk.green("> Enter the option number: "));
13+
const option = await io.read();
14+
15+
switch (option) {
16+
case "1":
17+
email();
18+
break;
19+
20+
default:
21+
break;
22+
}
23+
};

0 commit comments

Comments
 (0)