Documentation
¶
Index ¶
- func GetWslHostName() string
- func IsWSL() bool
- func IsWayland() bool
- func Render(items []list.Item, cmds Commands, errors []string) error
- type Commands
- func (c Commands) Add(url string) error
- func (c Commands) CleanFeeds() error
- func (c Commands) FindArticle(substr string) (item store.Item, err error)
- func (c Commands) GetAllFeeds() ([]store.Item, error)
- func (c Commands) GetArticleByID(ID int) (store.Item, error)
- func (c Commands) GetGlamourisedArticle(ID int) (string, error)
- func (c Commands) List(numResults int) error
- func (c Commands) OpenInBrowser(url string) error
- func (c Commands) OpenLink(url string) error
- func (c Commands) TUI() error
- type ErrorItem
- type FetchResultError
- type TUIItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWslHostName ¶
func GetWslHostName() string
Gets the subsystem host ip If the CLI is running under WSL the localhost url will not work so this function should return the real ip that we should redirect to
Types ¶
type Commands ¶
type Commands struct {
// contains filtered or unexported fields
}
func (Commands) CleanFeeds ¶
func (Commands) FindArticle ¶
func (Commands) GetGlamourisedArticle ¶
func (Commands) OpenInBrowser ¶
type FetchResultError ¶
type FetchResultError struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.