Skip to content

Commit

Permalink
Rename project and add proper README
Browse files Browse the repository at this point in the history
  • Loading branch information
zMoooooritz committed Nov 12, 2023
1 parent 29358f3 commit 7511151
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 20 deletions.
6 changes: 3 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ before:
- go mod tidy

builds:
- binary: Nachrichten
- binary: nachrichten
flags:
- -trimpath
ldflags: -s -w -X main.Version={{ .Version }} -X main.CommitSHA={{ .Commit }}
Expand All @@ -22,11 +22,11 @@ builds:

nfpms:
- builds:
- Nachrichten
- nachrichten
vendor: Moooooritz
homepage: "https://github.com/zMoooooritz"
maintainer: "Moritz Biering <[email protected]>"
description: "A TUI application to read German news"
description: "A TUI application for reading German news"
license: MIT
formats:
- apk
Expand Down
27 changes: 25 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@

# Nachrichten
nachrichten
======

A small TUI application that allows reading the current (German) news in the console.
<p align="center">
<a href="https://github.com/zMoooooritz/nachrichten/releases"><img src="https://img.shields.io/github/actions/workflow/status/zMoooooritz/nachrichten/build.yml" alt="Build Status"></a>
<a href="https://github.com/zMoooooritz/nachrichten/releases"><img src="https://img.shields.io/github/v/release/zMoooooritz/nachrichten" alt="Latest Release"></a>
<a href="https://goreportcard.com/report/github.com/zMoooooritz/nachrichten"><img src="https://goreportcard.com/badge/zMoooooritz/nachrichten" alt="Go ReportCard"></a>
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
</p>

A small TUI for reading German news

## Installation
Install directly using Go
```
go install github.com/zMoooooritz/nachrichten@latest
```
or download from [releases](https://github.com/zMooooritz/nachrichten/releases)

## Usage
To launch the tool, run the `nachrichten` command

Press the `?` key to show the available keybinds

## Built with
- [bubbletea](https://github.com/chrmbracelet/bubbletea) and its ecosystem

4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"

tea "github.com/charmbracelet/bubbletea"
"github.com/zMoooooritz/Nachrichten/pkg/config"
"github.com/zMoooooritz/Nachrichten/pkg/tui"
"github.com/zMoooooritz/nachrichten/pkg/config"
"github.com/zMoooooritz/nachrichten/pkg/tui"
)

func Run() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/zMoooooritz/Nachrichten
module github.com/zMoooooritz/nachrichten

go 1.20

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/zMoooooritz/Nachrichten/cmd"
import "github.com/zMoooooritz/nachrichten/cmd"

func main() {
cmd.Run()
Expand Down
2 changes: 1 addition & 1 deletion pkg/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

const (
httpTimeout time.Duration = 2
agentName string = "Nachrichten-Agent"
agentName string = "nachrichten-agent"
)

func FetchURL(url string) ([]byte, error) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/tagesschau/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/PuerkitoBio/goquery"
"github.com/buger/jsonparser"
"github.com/zMoooooritz/Nachrichten/pkg/http"
"github.com/zMoooooritz/nachrichten/pkg/http"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/tui/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/charmbracelet/bubbles/help"
"github.com/charmbracelet/bubbles/list"
"github.com/charmbracelet/bubbles/spinner"
"github.com/zMoooooritz/Nachrichten/pkg/config"
"github.com/zMoooooritz/nachrichten/pkg/config"
)

func EmptyLists(s config.Style, count int) []list.Model {
Expand Down
4 changes: 2 additions & 2 deletions pkg/tui/newslist.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/charmbracelet/bubbles/list"
tea "github.com/charmbracelet/bubbletea"
"github.com/muesli/reflow/truncate"
"github.com/zMoooooritz/Nachrichten/pkg/config"
"github.com/zMoooooritz/Nachrichten/pkg/tagesschau"
"github.com/zMoooooritz/nachrichten/pkg/config"
"github.com/zMoooooritz/nachrichten/pkg/tagesschau"
)

type NewsDelegate struct {
Expand Down
6 changes: 3 additions & 3 deletions pkg/tui/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"github.com/charmbracelet/bubbles/viewport"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
"github.com/zMoooooritz/Nachrichten/pkg/config"
"github.com/zMoooooritz/Nachrichten/pkg/tagesschau"
"github.com/zMoooooritz/Nachrichten/pkg/util"
"github.com/zMoooooritz/nachrichten/pkg/config"
"github.com/zMoooooritz/nachrichten/pkg/tagesschau"
"github.com/zMoooooritz/nachrichten/pkg/util"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/opener.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os/exec"
"runtime"

"github.com/zMoooooritz/Nachrichten/pkg/config"
"github.com/zMoooooritz/nachrichten/pkg/config"
)

func OpenUrl(t config.ResourceType, c config.Configuration, url string) error {
Expand Down
4 changes: 2 additions & 2 deletions pkg/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
md "github.com/JohannesKaufmann/html-to-markdown"
"github.com/charmbracelet/glamour"
"github.com/charmbracelet/lipgloss"
"github.com/zMoooooritz/Nachrichten/pkg/config"
"github.com/zMoooooritz/Nachrichten/pkg/tagesschau"
"github.com/zMoooooritz/nachrichten/pkg/config"
"github.com/zMoooooritz/nachrichten/pkg/tagesschau"
)

func ContentToText(content []tagesschau.Content, width int, s config.Style) string {
Expand Down

0 comments on commit 7511151

Please sign in to comment.