mirror of
https://github.com/davegallant/rfd.git
synced 2025-08-07 00:58:14 +00:00
* instructions how to add completion. * argument completion won't come until click 7.0 * version bump. * drop 3.4 support. * remove python 3.7 * new gif. * new gif and use limit not count.
46 lines
931 B
Markdown
46 lines
931 B
Markdown
# RFD CLI
|
|
|
|
Hot Deals on the command line.
|
|
|
|
[](https://travis-ci.org/davegallant/rfd_cli)
|
|
|
|
[](https://badge.fury.io/py/rfd)
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
pip install rfd
|
|
```
|
|
|
|
## Usage
|
|
|
|

|
|
|
|
```bash
|
|
rfd threads <topic-id> [--limit 10]
|
|
```
|
|
|
|
### tail a post
|
|
|
|
```bash
|
|
▶ rfd posts https://forums.redflagdeals.com/koodo-targeted-public-mobile-12-120-koodo-6gb-40-no-referrals-2176935/ --tail 4
|
|
```
|
|
|
|
## Tab Completion
|
|
|
|
### bash
|
|
|
|
```bash
|
|
echo 'eval "$(_RFD_COMPLETE=source rfd)"' >> ~/.profile
|
|
```
|
|
|
|
### zsh
|
|
|
|
There isn't native support for zsh but zsh's bash completion compatibility mode works:
|
|
|
|
```zsh
|
|
echo 'autoload bashcompinit \
|
|
bashcompinit \
|
|
eval "$(_FOO_BAR_COMPLETE=source foo-bar)"' >> ~/.zshrc
|
|
```
|