~chrisppy/beagles

eaac4319fbf7fcf382898f743d78901ca726e50e — Chris Palmer 1 year, 4 months ago a03da90
Update Name
M .build.yml => .build.yml +6 -6
@@ 2,22 2,22 @@ image: alpine/edge
packages:
- go
sources:
- https://git.sr.ht/~chrisppy/beaglecasts
- https://git.sr.ht/~chrisppy/beagles
#- https://git.sr.ht/~sircmpwn/annotatego
secrets:
- a9337651-e1ab-47d0-89e9-3f95a9ad98a0
tasks:
- build: |
    cd beaglecasts
    cd beagles
    make
- test: |
    cd beaglecasts
    cd beagles
    go test ./...
#- annotatego: |
#    cd annotatego
#    go build
#    sudo cp annotatego /usr/bin/
#- annotate: |
#    cd beaglecasts
#    annotatego -v git.sr.ht/~chrisppy/beaglecasts... > annotations.json
#    ~/upload-annotations annotations.json chrisppy beaglecasts
#    cd beagles
#    annotatego -v git.sr.ht/~chrisppy/beagles... > annotations.json
#    ~/upload-annotations annotations.json chrisppy beagles

M .gitignore => .gitignore +1 -1
@@ 1,4 1,4 @@
beaglecasts
beagles

.idea/*
.vscode/*

M Makefile => Makefile +3 -3
@@ 1,7 1,7 @@
.POSIX:
.SUFFIXES:

PKGNAME=beaglecasts
PKGNAME=beagles

VERSION=0.1.0



@@ 17,7 17,7 @@ GOFLAGS?=
GOSRC!=find . -name '*.go'
GOSRC+=go.mod go.sum

beaglecasts: $(GOSRC)
beagles: $(GOSRC)
	mkdir -m755 -p $(SHAREDIR)/$(PKGNAME) $(CONFIGDIR)/$(PKGNAME) \
		$(CACHEDIR)/$(PKGNAME)
	$(GO) build $(GOFLAGS) \


@@ 28,7 28,7 @@ beaglecasts: $(GOSRC)
		-X main.CacheDir=$(CACHEDIR)/$(PKGNAME)" \
		-o $@

all: beaglecasts 
all: beagles 

# Exists in GNUMake but not in NetBSD make and others.
RM?=rm -f

M README.md => README.md +6 -6
@@ 1,8 1,8 @@
# beaglecasts
# beagles

> TUI podcast aggregator and player

[![builds.sr.ht status](https://builds.sr.ht/~chrisppy/beaglecasts/.build.yml.svg)](https://builds.sr.ht/~chrisppy/beaglecasts/.build.yml?)
[![builds.sr.ht status](https://builds.sr.ht/~chrisppy/beagles/.build.yml.svg)](https://builds.sr.ht/~chrisppy/beagles/.build.yml?)

This is still a WIP with the following left to do for a first release



@@ 37,23 37,23 @@ Install the dependencies:

- go (>=1.13)

Then compile beaglecasts:
Then compile beagles:

    $ make

beaglecasts allows the ability to set the configuration directory at compile time:
beagles allows the ability to set the configuration directory at compile time:

    $ make PREFIX=/usr CONFIGDIR=$HOME/.config

## Installation

    # make install PREFIX=/usr
    $ beaglecasts
    $ beagles

## License

Copyright © 2020 Chris Palmer <chris@red-oxide.org>

`beaglecasts` is available under the terms of the `GPL-3.0` license.
`beagles` is available under the terms of the `GPL-3.0` license.

![alt text](https://www.gnu.org/graphics/gplv3-with-text-84x42.png "GPLv3")

M application.go => application.go +1 -1
@@ 1,4 1,4 @@
// This file is part of beaglecasts.
// This file is part of beagles.
//
// Copyright © 2020 Chris Palmer <chris@red-oxide.org>
//

M commandline.go => commandline.go +1 -1
@@ 1,4 1,4 @@
// This file is part of beaglecasts.
// This file is part of beagles.
//
// Copyright © 2020 Chris Palmer <chris@red-oxide.org>
//

M db.go => db.go +1 -1
@@ 1,4 1,4 @@
// This file is part of beaglecasts.
// This file is part of beagles.
//
// Copyright © 2020 Chris Palmer <chris@red-oxide.org>
//

M go.mod => go.mod +1 -1
@@ 1,4 1,4 @@
module git.sr.ht/~chrisppy/beaglecasts
module git.sr.ht/~chrisppy/beagles

go 1.14


M main.go => main.go +5 -5
@@ 1,4 1,4 @@
// This file is part of beaglecasts.
// This file is part of beagles.
//
// Copyright © 2020 Chris Palmer <chris@red-oxide.org>
//


@@ 29,18 29,18 @@ var (
	// Version of the application
	Version string

	// ConfigDir is the path defined during build i.e. ~/.config/beaglecasts
	// ConfigDir is the path defined during build i.e. ~/.config/beagles
	ConfigDir string

	// ShareDir is the path defined during build i.e. ~/usr/local/share/beaglecasts
	// ShareDir is the path defined during build i.e. ~/usr/local/share/beagles
	ShareDir string

	// CacheDir is the path defined during build i.e. ~/.cache/beaglecasts
	// CacheDir is the path defined during build i.e. ~/.cache/beagles
	CacheDir string
)

func main() {
	path := filepath.Clean(filepath.Join(CacheDir, "beaglecasts.db"))
	path := filepath.Clean(filepath.Join(CacheDir, "beagles.db"))
	db, err := ReadDB(path)
	if err != nil {
		wlog.Fatal(err.Error())

M model.go => model.go +1 -1
@@ 1,4 1,4 @@
// This file is part of beaglecasts.
// This file is part of beagles.
//
// Copyright © 2020 Chris Palmer <chris@red-oxide.org>
//

M queue.go => queue.go +1 -1
@@ 1,4 1,4 @@
// This file is part of beaglecasts.
// This file is part of beagles.
//
// Copyright © 2020 Chris Palmer <chris@red-oxide.org>
//

M rss.go => rss.go +1 -1
@@ 1,4 1,4 @@
// This file is part of beaglecasts.
// This file is part of beagles.
//
// Copyright © 2020 Chris Palmer <chris@red-oxide.org>
//

M separator.go => separator.go +1 -1
@@ 1,4 1,4 @@
// This file is part of beaglecasts.
// This file is part of beagles.
//
// Copyright © 2020 Chris Palmer <chris@red-oxide.org>
//

M shownotes.go => shownotes.go +1 -1
@@ 1,4 1,4 @@
// This file is part of beaglecasts.
// This file is part of beagles.
//
// Copyright © 2020 Chris Palmer <chris@red-oxide.org>
//

M statusline.go => statusline.go +1 -1
@@ 1,4 1,4 @@
// This file is part of beaglecasts.
// This file is part of beagles.
//
// Copyright © 2020 Chris Palmer <chris@red-oxide.org>
//

M theme.go => theme.go +1 -1
@@ 1,4 1,4 @@
// This file is part of beaglecasts.
// This file is part of beagles.
//
// Copyright © 2020 Chris Palmer <chris@red-oxide.org>
//

M titleline.go => titleline.go +2 -2
@@ 1,4 1,4 @@
// This file is part of beaglecasts.
// This file is part of beagles.
//
// Copyright © 2020 Chris Palmer <chris@red-oxide.org>
//


@@ 29,7 29,7 @@ func newTitleLine(theme *themeType) *tui.TextView {

	line := tui.NewTextView()
	line.SetTextAlign(tui.AlignCenter)
	line.SetText("beaglecasts")
	line.SetText("beagles")

	bgColor := theme.BackgroundColor
	fgColor := theme.ForegroundColor

M ui.go => ui.go +3 -3
@@ 1,4 1,4 @@
// This file is part of beaglecasts.
// This file is part of beagles.
//
// Copyright © 2020 Chris Palmer <chris@red-oxide.org>
//


@@ 288,9 288,9 @@ func (i *ui) createQueuePage(theme *themeType) {
}

func (i *ui) createHelpPage(theme *themeType) {
	text := `beaglecasts v%s is available under the terms of the GPL-3.0 license.
	text := `beagles v%s is available under the terms of the GPL-3.0 license.
Copyright © 2020  Chris Palmer <chris@red-oxide.org>
https://git.sr.ht/~chrisppy/beaglecasts
https://git.sr.ht/~chrisppy/beagles

KEYS:
	h,🠔