File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11const io = require ( "console-read-write" ) ;
22const email = require ( "./getEmail" ) ;
3+ const stars = require ( "./getStargazer" ) ;
4+ const exit = require ( "./exit" ) ;
35const chalk = require ( "chalk" ) ;
46
57module . 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 }
You can’t perform that action at this time.
0 commit comments