Skip to content

Commit 1613639

Browse files
committed
feat: short command
1 parent 12022d8 commit 1613639

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bin/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Example:
1515

1616
// get hacker news feeds
1717
program
18-
.command('news')
18+
.command('hn')
1919
.description(t('program.hnDesc'))
2020
.option('-t, --top <top n>', t('program.hnTop'))
2121
.action((args) => {
@@ -25,7 +25,7 @@ program
2525

2626
// get product hunt feeds
2727
program
28-
.command('product')
28+
.command('ph')
2929
.description(t('program.phDesc'))
3030
.option('-c, --count <count n>', t('program.phCount'))
3131
.option('-p, --past <past n days>', t('program.phPast'))
@@ -36,7 +36,7 @@ program
3636

3737
// get github feeds
3838
program
39-
.command('github')
39+
.command('gh')
4040
.description(t('program.ghDesc'))
4141
.option('-s, --since <optional>', t('program.ghSince'))
4242
.option('-l, --lang <optional>', t('program.ghLang'))

common/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
const PH_ACCESS_TOKEN = '<Your Product Hunt Dev Access Token>';
1+
const PH_ACCESS_TOKEN = 'dcAT8ChAdJFljS8_HY3zIe0iK4CEAI8jJ2YUgMokAjg';
22

33
module.exports = { PH_ACCESS_TOKEN };

0 commit comments

Comments
 (0)