newsie-golang

command module
v0.0.0-...-718dce2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2020 License: MIT Imports: 4 Imported by: 0

README

newsie

newsie is a command line tool and pacman hook for reading Arch Linux newsfeed posts, inspired by informant and Gentoo's eselect news module. It is written in Go.

Installation

It can be installed via the Arch User Repository.

yay -S newsie

...or built from source here.

go build main.go

Usage

browse: Browse through each unread post until you've read all unread posts or quit via n. You can optionally specify the -a or --all options to browse all posts (both read and unread).

newsie browse [-a | --all]

clear: Mark all posts as read.

newsie clear

fetch: Returns the number of posts that you haven't read yet. You can optionally specify the -p or --prompt options if you want to be given an option to browse any unread posts. This is the mechanism by which the pacman hook works.

newsie fetch [-p | --prompt]

ls: Prints a detailed list of posts that you haven't read yet or, if you specify the -a or --all options, all posts (both read and unread). Unread posts appear in red when you specify the --all option.

newsie ls [-a | --all]

read: Read the first post in the queue. If you don't specify the -n or --number options, the latest post will be displayed. If you specify -n or --number, the post matching the provided number will be displayed. The post number is consistent with the numbering from the ls and ls --all commands.

newsie read [-n <post_number> | --number <post_number>]

pacman

The pacman hook is enabled by default if you install via the AUR. It will abort any upgrades/installs (i.e. -S or -Syu) if you have any unread items. You can disable it by symlinking the existing hook at /usr/share/libalpm/hooks/ to /dev/null.

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
archparser module
termstyle module

Jump to

Keyboard shortcuts

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