62 lines
1.4 KiB
Markdown
62 lines
1.4 KiB
Markdown
# srv
|
|
|
|
[](https://travis-ci.org/davegallant/srv)
|
|
[](https://goreportcard.com/report/github.com/davegallant/srv)
|
|
|
|
View RSS feeds from the terminal.
|
|
|
|

|
|
|
|
## install
|
|
|
|
### via releases
|
|
|
|
```shell
|
|
VERSION='0.0.2'; \
|
|
sudo curl --progress-bar \
|
|
-L "https://github.com/davegallant/srv/releases/download/v${VERSION}/srv_${VERSION}_$(uname -s)_x86_64.tar.gz" | \
|
|
sudo tar -C /usr/bin --overwrite -xvzf - srv
|
|
```
|
|
|
|
### via go
|
|
|
|
```shell
|
|
go get github.com/davegallant/srv
|
|
```
|
|
|
|
## configure
|
|
|
|
srv reads configuration from `~/.config/srv/config.yaml`
|
|
|
|
If a configuration is not provided, a default configuration is generated.
|
|
|
|
- `feeds` is a list of RSS/Atom feeds to be loaded in srv.
|
|
- `externalViewer` defines an application to override the default web browser (optional).
|
|
|
|
An example config can be copied:
|
|
|
|
```shell
|
|
cp ./config-example.yaml ~/.config/srv/config.yaml
|
|
```
|
|
|
|
## control
|
|
|
|
Key mappings are statically defined for the time being.
|
|
|
|
- `TAB` switches between Feeds and Items.
|
|
- `UP/DOWN` navigates feeds and items`
|
|
- `ENTER` either selects a feed or opens a feed item in an external application.
|
|
- `F5` refresh list of feeds
|
|
|
|
## build
|
|
|
|
```shell
|
|
make build
|
|
```
|
|
|
|
## test
|
|
|
|
```shell
|
|
make test
|
|
```
|