mirror of
https://github.com/davegallant/rfd.git
synced 2025-08-06 08:43:41 +00:00
Run tests in GitHub Actions instead of Travis-CI (#89)
* Replace travis-ci with Actions * Update README.md * Add stdout to assertion failure
This commit is contained in:
49
README.md
49
README.md
@@ -2,7 +2,6 @@
|
||||
|
||||
Hot deals on the command line.
|
||||
|
||||
[](https://travis-ci.com/davegallant/rfd)
|
||||
[](https://badge.fury.io/py/rfd)
|
||||
[](https://dependabot.com/)
|
||||
[](https://pepy.tech/project/rfd)
|
||||
@@ -17,7 +16,7 @@ pip install rfd
|
||||
|
||||
## Usage
|
||||
|
||||
```shell
|
||||
```sh
|
||||
Usage: rfd [OPTIONS] COMMAND [ARGS]...
|
||||
|
||||
CLI for https://forums.redflagdeals.com
|
||||
@@ -34,60 +33,62 @@ Commands:
|
||||
|
||||
## Examples
|
||||
|
||||
All commands open up in a pager.
|
||||
|
||||
Search can be done using `/`.
|
||||
|
||||
Close pager with `q`.
|
||||
All commands open up in a [terminal pager](https://en.wikipedia.org/wiki/Terminal_pager).
|
||||
|
||||
### View Hot Deals
|
||||
|
||||
```console
|
||||
$ rfd threads
|
||||
```sh
|
||||
rfd threads
|
||||
```
|
||||
|
||||
### View and Sort Hot Deals
|
||||
|
||||
```console
|
||||
$ rfd threads --sort-by score
|
||||
```sh
|
||||
rfd threads --sort-by score
|
||||
```
|
||||
|
||||
```console
|
||||
$ rfd threads --sort-by views --pages 10
|
||||
To view and sort multiple pages, use `--pages`:
|
||||
|
||||
```sh
|
||||
rfd threads --sort-by views --pages 10
|
||||
```
|
||||
|
||||
### Simple Search
|
||||
|
||||
```console
|
||||
$ rfd search 'pizza'
|
||||
```sh
|
||||
rfd search 'pizza'
|
||||
```
|
||||
|
||||
### Advanced Search
|
||||
|
||||
Regular expressions can be used for search.
|
||||
|
||||
```console
|
||||
$ rfd search '(coffee|starbucks)' --pages 10 --sort-by views
|
||||
```sh
|
||||
rfd search '(coffee|starbucks)' --pages 10 --sort-by views
|
||||
```
|
||||
|
||||
### View Posts
|
||||
|
||||
```console
|
||||
$ rfd posts https://forums.redflagdeals.com/kobo-vs-kindle-2396227/
|
||||
It's possible to view an entire post and all comments by running:
|
||||
|
||||
```sh
|
||||
rfd posts https://forums.redflagdeals.com/kobo-vs-kindle-2396227/
|
||||
```
|
||||
|
||||
This allows for easy grepping and searching for desired expressions.
|
||||
|
||||
## Shell Completion
|
||||
|
||||
Completion can be enabled if using `bash` or `zsh`.
|
||||
Shell completion can be enabled if using `bash` or `zsh`.
|
||||
|
||||
### bash
|
||||
|
||||
```console
|
||||
$ echo 'eval "$(_RFD_COMPLETE=source rfd)"' >> ~/.profile
|
||||
```sh
|
||||
echo 'eval "$(_RFD_COMPLETE=source rfd)"' >> ~/.profile
|
||||
```
|
||||
|
||||
### zsh
|
||||
|
||||
```console
|
||||
$ echo 'eval "$(_RFD_COMPLETE=source_zsh rfd)"' >> ~/.zshrc
|
||||
```sh
|
||||
echo 'eval "$(_RFD_COMPLETE=source_zsh rfd)"' >> ~/.zshrc
|
||||
```
|
||||
|
Reference in New Issue
Block a user