CLI flags, start setting up goreleaser, add build scripts
Copied and fixed the build scripts from jf-accounts, added them to the .goreleaser.yml. Also: data directory now stored in user's config folder Handle timeouts in jfapi Maybe more i forgot about.
This commit is contained in:
+4
-2
@@ -68,9 +68,11 @@ func (st *Storage) storeDisplayprefs() error {
|
||||
}
|
||||
|
||||
func loadJSON(path string, obj interface{}) error {
|
||||
file, err := ioutil.ReadFile(path)
|
||||
var file []byte
|
||||
var err error
|
||||
file, err = ioutil.ReadFile(path)
|
||||
if err != nil {
|
||||
return err
|
||||
file = []byte("{}")
|
||||
}
|
||||
err = json.Unmarshal(file, &obj)
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user