gotify / gotify/cli

Feature: New option to push message every x lines(default 1)

Offen
#69 3 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @eternal-flame-AD Auf GitHub ansehen
a:feature
Vorherrschende Sprache
Go
Sterne
588
Forks
73
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I'm watching logs for some filesystems and want notified when there are new entries. I'm using:

```sh
`journalctl -kf | xargs -L 1 gotify p
```

That is working great! I'd like to make it integrated so as to not worry as much about buffering and to not need the `xargs` and be more portable for others.

Something like:
```sh
journalctl -kf | gotify p -L 1
```

And the option could be:
```
gotify push
--lines value, -L value Push a message every 'value' lines (default: 1)
```

Would this be a good idea?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.