0.4.0 • Published 5 years ago
redgit v0.4.0
redgit
Git like interface for Reddit.
Usage
$ npm install -g redgit
$ redgit init
$ redgit log --ordering=new --limit 5 awwCommands
redgit config [KEY] [VALUE]redgit downvote IDredgit help [COMMAND]redgit initredgit log [SUBREDDIT]redgit open IDredgit reply IDredgit show IDredgit 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: nameSee code: src/commands/config.ts
redgit downvote ID
downvotes an submission
USAGE
$ redgit downvote ID
ARGUMENTS
ID id of the submission to downvoteSee 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 CLISee code: @oclif/plugin-help
redgit init
initializes RedGit with Reddit authentication tokens
USAGE
$ redgit initSee 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|yearSee 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 openSee 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 replySee code: src/commands/reply.ts
redgit show ID
display single submission
USAGE
$ redgit show ID
ARGUMENTS
ID id of the submission to displaySee 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 upvoteSee code: src/commands/upvote.ts