Distribute as a snap?
- Vorherrschende Sprache
- Go
- Sterne
- 588
- Forks
- 73
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Hi,
Would you consider distributing this CLI tool as a [snap](https://snapcraft.io/about)?
This would make it much simpler to install on a bunch of distros, e.g.
```bash
snap install gotify-cli
...
gotify-cli push "Hello World"
```
I've worked out a minimal snapcraft yaml file (assuming it is included in this repo as `snap/snapcraft.yaml`):
```yaml
name: gotify-cli
summary: A command line interface for pushing messages to gotify/server.
description: |
Gotify-CLI is a command line client for pushing messages to gotify/server.
version: git
grade: stable
base: core20
confinement: strict
apps:
gotify-cli:
command: bin/cli
plugs: [network]
parts:
gotify-cli:
plugin: go
source: .
```
This was enough for me to build it locally, install it and test the `init/config/push` functionalities. The `version` command only spits `unknown`s tho. Furthermore some of the proposed path for the config file are most likely not exposed by default to the snap.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginnen Sie mit der vorgeschlagenen snap/snapcraft.yaml und prüfen Sie, wie die CLI die Befehle init, config, push und version implementiert. Bauen und installieren Sie den Snap wie beschrieben und überprüfen Sie anschließend diese Befehle, die Versionsausgabe und den Zugriff auf die vorgeschlagenen Konfigurationspfade; die Aufgabe ist abgeschlossen, wenn der Snap gebaut werden kann und die erwartete Funktionalität bereitstellt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- go
- Bereich
- cli, release
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100