Git like interface for Reddit.
$ npm install -g redgit
$ redgit init
$ redgit log --ordering=new --limit 5 wallstreetbets
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
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
downvotes an submission
USAGE
$ redgit downvote ID
ARGUMENTS
ID id of the submission to downvote
See code: src/commands/downvote.ts
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
initializes RedGit with Reddit authentication tokens
USAGE
$ redgit init
See code: src/commands/init.ts
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
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
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
display single submission
USAGE
$ redgit show ID
ARGUMENTS
ID id of the submission to display
See code: src/commands/show.ts
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
upvotes an submission
USAGE
$ redgit upvote ID
ARGUMENTS
ID id of the submission to upvote
See code: src/commands/upvote.ts