~willt

Recent activity

[PATCH] Background feed update and autoupdate 4 years ago

From Will Tiffany to ~chrisppy/beagles-devel

---
 config/config.go         | 67 ++++++++++++++++++++------------------
 doc/beagles-config.5.scd |  3 ++
 go.mod                   |  7 ++++
 go.sum                   | 69 ++++++++++++++++++++++++++++++++++++++++
 main.go                  |  4 +++
 ui/ui.go                 | 37 +++++++++++++--------
 6 files changed, 142 insertions(+), 45 deletions(-)

diff --git a/config/config.go b/config/config.go
index 6a34703..1c6db2c 100644
--- a/config/config.go
+++ b/config/config.go
@@ -21,6 +21,7 @@ import (
[message trimmed]

[PATCH] Error message on unrecognized command 4 years ago

From Will Tiffany to ~chrisppy/beagles-devel

---
 ui/ui.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ui/ui.go b/ui/ui.go
index 710f5e9..713e52f 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -123,6 +123,9 @@ func (i *UI) Init() {
			i.deleteFeed(args)
		case ":update", ":up":
			i.updateFeed(args)
		default:
			i.commandLine.setError("unrecognized command: " + args[0][1:])
[message trimmed]

[PATCH] Check for duplicate feed before adding 4 years ago

From Will Tiffany to ~chrisppy/beagles-devel

---
 db/db.go | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/db/db.go b/db/db.go
index eed6ac5..3872e03 100644
--- a/db/db.go
+++ b/db/db.go
@@ -130,6 +130,11 @@ func ReadDB(path string) (*Storage, error) {
// CreateFeed will collect the rss feed and process through the elements
// and add the relevant data elements to the database
func (s *Storage) CreateFeed(url string) error {
	_, ok := s.Feeds[url]
	if ok {
[message trimmed]

[PATCH] Check if feed exists when attempting delete 4 years ago

From Will Tiffany to ~chrisppy/beagles-devel

---
 db/db.go | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/db/db.go b/db/db.go
index 6b9af47..28d2c71 100644
--- a/db/db.go
+++ b/db/db.go
@@ -228,7 +228,11 @@ func (s *Storage) DeleteFeed(url string) error {
	}
	defer db.Close()

	items := s.Feeds[url].Items
	feed, ok := s.Feeds[url]
[message trimmed]

[PATCH] Added man pages: beagles(1) and beagles-config(5) 4 years ago

From Will Tiffany to ~chrisppy/beagles-devel

---
 Makefile                 | 28 +++++++++++--
 README.md                |  3 +-
 doc/beagles-config.5.scd | 88 ++++++++++++++++++++++++++++++++++++++++
 doc/beagles.1.scd        | 78 +++++++++++++++++++++++++++++++++++
 ui.go                    |  5 +++
 5 files changed, 198 insertions(+), 4 deletions(-)
 create mode 100644 doc/beagles-config.5.scd
 create mode 100644 doc/beagles.1.scd

diff --git a/Makefile b/Makefile
index 01397dd..be85f69 100644
--- a/Makefile
+++ b/Makefile
[message trimmed]