We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad462f9 commit 306599cCopy full SHA for 306599c
2 files changed
‎utils/cli.js‎
‎utils/options.js‎
@@ -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
22
+ }
23
+};
0 commit comments