redgit
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

redgit

Git like interface for Reddit.

oclif Version Downloads/week License

Usage

$ npm install -g redgit
$ redgit init
$ redgit log --ordering=new --limit 5 aww

Commands

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

Readme

Keywords

Package Sidebar

Install

npm i redgit

Weekly Downloads

0

Version

0.4.0

License

MIT

Unpacked Size

49.5 kB

Total Files

67

Last publish

Collaborators

  • rauli