redgit
v0.4.0
Published
Git like interface for Reddit.
Downloads
9
Readme
redgit
Git like interface for Reddit.
Usage
$ npm install -g redgit
$ redgit init
$ redgit log --ordering=new --limit 5 aww
Commands
redgit config [KEY] [VALUE]
redgit downvote ID
redgit help [COMMAND]
redgit init
redgit log [SUBREDDIT]
redgit open ID
redgit reply ID
redgit show ID
redgit subscription [COMMAND] [SUBREDDIT]
redgit upvote ID
redgit config [KEY] [VALUE]
manage RedGit configuration
USAGE
$ redgit config [KEY] [VALUE]
ARGUMENTS
KEY name of the variable to get/set
VALUE new value of the variable
OPTIONS
-e, --edit opens the configuration file in text editor
-l, --list list all
--get=get get value: name
--get-regexp=get-regexp get values for regexp: name-regex
--unset=unset remove a variable: name
See code: src/commands/config.ts
redgit downvote ID
downvotes an submission
USAGE
$ redgit downvote ID
ARGUMENTS
ID id of the submission to downvote
See code: src/commands/downvote.ts
redgit help [COMMAND]
display help for redgit
USAGE
$ redgit help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
redgit init
initializes RedGit with Reddit authentication tokens
USAGE
$ redgit init
See code: src/commands/init.ts
redgit log [SUBREDDIT]
list submissions
USAGE
$ redgit log [SUBREDDIT]
ARGUMENTS
SUBREDDIT subreddit to list submissions from
OPTIONS
-l, --limit=limit limit the number of listed submissions
-o, --ordering=controversial|hot|new|rising|top [default: hot] ordering of submissions
-t, --time=all|hour|day|month|week|year
See code: src/commands/log.ts
redgit open ID
opens URL of an submission in browser
USAGE
$ redgit open ID
ARGUMENTS
ID id of the submission to open
See code: src/commands/open.ts
redgit reply ID
replies to an submission
USAGE
$ redgit reply ID
ARGUMENTS
ID id of the submission to reply to
OPTIONS
-m, --message=message message to send as an reply
See code: src/commands/reply.ts
redgit show ID
display single submission
USAGE
$ redgit show ID
ARGUMENTS
ID id of the submission to display
See code: src/commands/show.ts
redgit subscription [COMMAND] [SUBREDDIT]
manage subreddit subscriptions
USAGE
$ redgit subscription [COMMAND] [SUBREDDIT]
ARGUMENTS
COMMAND (add|rm)
SUBREDDIT name of subreddit (without /r/ prefix)
See code: src/commands/subscription.ts
redgit upvote ID
upvotes an submission
USAGE
$ redgit upvote ID
ARGUMENTS
ID id of the submission to upvote
See code: src/commands/upvote.ts