Skip to content

Commit 8ee39fc

Browse files
committed
📦 NEW: shortcuts
1 parent 33eac72 commit 8ee39fc

File tree

7 files changed

+145
-1
lines changed

7 files changed

+145
-1
lines changed

‎package.json‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@
1212
},
1313
"bin": {
1414
"github": "index.js",
15-
"github-cli": "index.js"
15+
"github-cli": "index.js",
16+
"github-new": "utils/repo.js",
17+
"github-get": "utils/gtRepo.js",
18+
"github-issue": "utils/issue.js",
19+
"github-stars": "utils/star.js",
20+
"github-email": "utils/email.js",
21+
"github-delete": "utils/delete.js"
1622
},
1723
"files": [
1824
"index.js",

‎utils/delete.js‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env node
2+
/**
3+
*
4+
* Author: Saad Irfan
5+
* GitHub: msaaddev
6+
* Twitter: https://twitter.com/msaaddev
7+
*/
8+
9+
const clear = require("clear");
10+
const header = require("./header.js");
11+
const auth = require("./authentication.js");
12+
const deleteRepo = require("./deleteRepo.js");
13+
14+
const cli = async () => {
15+
clear();
16+
header();
17+
try {
18+
await auth();
19+
} catch (err) {}
20+
deleteRepo();
21+
};
22+
23+
cli();

‎utils/email.js‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env node
2+
/**
3+
*
4+
* Author: Saad Irfan
5+
* GitHub: msaaddev
6+
* Twitter: https://twitter.com/msaaddev
7+
*/
8+
9+
const clear = require("clear");
10+
const header = require("./header.js");
11+
const auth = require("./authentication.js");
12+
const email = require("./getEmail.js");
13+
14+
const cli = async () => {
15+
clear();
16+
header();
17+
try {
18+
await auth();
19+
} catch (err) {}
20+
email();
21+
};
22+
23+
cli();

‎utils/gtRepo.js‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env node
2+
/**
3+
*
4+
* Author: Saad Irfan
5+
* GitHub: msaaddev
6+
* Twitter: https://twitter.com/msaaddev
7+
*/
8+
9+
const clear = require("clear");
10+
const header = require("./header.js");
11+
const auth = require("./authentication.js");
12+
const repo = require("./getRepo.js");
13+
14+
const cli = async () => {
15+
clear();
16+
header();
17+
try {
18+
await auth();
19+
} catch (err) {}
20+
repo();
21+
};
22+
23+
cli();

‎utils/issue.js‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env node
2+
/**
3+
*
4+
* Author: Saad Irfan
5+
* GitHub: msaaddev
6+
* Twitter: https://twitter.com/msaaddev
7+
*/
8+
9+
const clear = require("clear");
10+
const header = require("./header.js");
11+
const auth = require("./authentication.js");
12+
const issue = require("./createIssue.js");
13+
14+
const cli = async () => {
15+
clear();
16+
header();
17+
try {
18+
await auth();
19+
} catch (err) {}
20+
issue();
21+
};
22+
23+
cli();

‎utils/repo.js‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env node
2+
/**
3+
*
4+
* Author: Saad Irfan
5+
* GitHub: msaaddev
6+
* Twitter: https://twitter.com/msaaddev
7+
*/
8+
9+
const clear = require("clear");
10+
const header = require("./header.js");
11+
const auth = require("./authentication.js");
12+
const repo = require("./createRepo.js");
13+
14+
const cli = async () => {
15+
clear();
16+
header();
17+
try {
18+
await auth();
19+
} catch (err) {}
20+
repo();
21+
};
22+
23+
cli();

‎utils/stars.js‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env node
2+
/**
3+
*
4+
* Author: Saad Irfan
5+
* GitHub: msaaddev
6+
* Twitter: https://twitter.com/msaaddev
7+
*/
8+
9+
const clear = require("clear");
10+
const header = require("./header.js");
11+
const auth = require("./authentication.js");
12+
const star = require("./getStargazer.js");
13+
14+
const cli = async () => {
15+
clear();
16+
header();
17+
try {
18+
await auth();
19+
} catch (err) {}
20+
star();
21+
};
22+
23+
cli();

0 commit comments

Comments
 (0)