gotify / gotify/cli

Distribute as a snap?

Aperta
#48 1 commento 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
588
Fork
73
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.