commands

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2023 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(items []list.Item, cmds Commands) error

Types

type Commands

type Commands struct {
	// contains filtered or unexported fields
}

func New

func New(config config.Config, cache cache.CacheInterface) Commands

func (Commands) Add

func (c Commands) Add(url string) error

func (Commands) FindArticle

func (c Commands) FindArticle(substr string) (item rss.Item, err error)

func (Commands) FindGlamourisedArticle

func (c Commands) FindGlamourisedArticle(substr string) (string, error)

func (Commands) List

func (c Commands) List(numResults int, cache bool) error

func (Commands) Read

func (c Commands) Read(substrs ...string) error

func (Commands) TUI

func (c Commands) TUI() error

type FetchResultError

type FetchResultError struct {
	// contains filtered or unexported fields
}

type Item

type Item struct {
	Title    string
	FeedName string
	URL      string
}

func RSSToItem

func RSSToItem(c rss.Item) Item

func (Item) FilterValue

func (i Item) FilterValue() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL