gotify / gotify/cli

Use the user directory as default config file location

Aperta
#23 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
588
Fork
73
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

The current default(first) location for configuration storage is `./cli.json`, which is not so useful in most cases since the user would need to:
- Call gotify-cli in this specific directory for every invocation
- Create a `cli.json` in a random directory, which is not a clearly explanatory file name.

So I think in most cases, the user would use user directory as their config storage, so we should put that in front of `./cli.json` by default during initialization.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Locate the initialization and configuration path handling in the CLI, then inspect how the default locations are ordered. Verify that the user directory is checked before ./cli.json and confirm the resulting precedence during normal invocation.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
go
Ambito
cli
Tipo di issue
Funzionalità
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.